Compiler error with new using pattern #33746
Labels
Area-Compilers
Bug
Concept-Diagnostic Clarity
The issues deals with the ease of understanding of errors and warnings.
Feature - enhanced using
Using pattern and declaration
Milestone
Version Used:
VS 16.0.0 Preview 4.0
Steps to Reproduce:
Expected Behavior:
No compiler error?
Actual Behavior:
Compiler error: Error CS1674 'Test': type used in a using statement must be implicitly convertible to 'System.IDisposable' or implement a suitable 'Dispose' method.
Not sure what's intended behavior... If everything is working as intended, then error message is misleading...
According to dotnet/csharplang#1623
this is a bug...
The text was updated successfully, but these errors were encountered: