You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Keeping this in 17.11 for now as we don't have any user reports of this breaking them. If there are reports though we may need to go back and service 17.10 .
publicclassClass1:IAsyncDisposable{ValueTaskIAsyncDisposable.DisposeAsync()=>default;protectedvirtualValueTaskDisposeAsync(booldisposing)=>default;}publicclassClass2{publicstaticasyncvoidTest(){// error CS0122: 'Class1.DisposeAsync(bool)' is inaccessible due to its protection levelawaitusingvarx=newClass1();}}
Quite puzzling, as I wouldn't expect reference to DisposeAsync(bool) method here
The tests below reflects the current behavior:
The code used to compile successfully and was printing "123D". This is likely a regression from #72598.
Note, similar scenario in
await foreach
works the same way theawait using
used to work (i.e. it falls back to usingIAsyncDisposable
implementation).The text was updated successfully, but these errors were encountered: