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
internalclassUsingTest{[StructLayout(LayoutKind.Sequential,Size=1)]privatestructTypeA:IDisposable{publicvoidDispose(){}publicstaticimplicitoperatorTypeB(inTypeAa){returndefault(TypeB);}}[StructLayout(LayoutKind.Sequential,Size=1)]privatestructTypeB{}privatestaticvoidTest(){TypeAa=default(TypeA);try{Empty(a);}finally{((IDisposable)a/*cast due to .constrained prefix*/).Dispose();}}privatestaticvoidEmpty(TypeBb){}}
This also happens when the types are classes.
Details
Product in use: e.g. ILSpy 9.0 VS extension
The text was updated successfully, but these errors were encountered:
Input code
Erroneous output
This also happens when the types are classes.
Details
The text was updated successfully, but these errors were encountered: