Misleading error message in case of ref-returning this in a reference type #15704
Labels
Area-Compilers
Bug
Concept-Diagnostic Clarity
The issues deals with the ease of understanding of errors and warnings.
Resolution-Fixed
The bug has been fixed and/or the requested behavior has been implemented
Milestone
Version Used: 0694d5c
Steps to Reproduce:
Expected Behavior:
error CS1605: Cannot use 'this' as a ref or out value because it is read-only
Actual Behavior:
error CS8170: Struct members cannot return 'this' or other instance members by reference
The text was updated successfully, but these errors were encountered: