Inaccurate error message when assigning to ref readonly variable #25676
Labels
Area-Compilers
Bug
Concept-Diagnostic Clarity
The issues deals with the ease of understanding of errors and warnings.
Milestone
Version Used: SharpLab using Roslyn master from 14 March: 644e1e0
Steps to Reproduce:
Compile the following code:
Expected Behavior:
Accurate error message, possibly:
Actual Behavior:
This error message is not accurate, because
i
is a variable.The text was updated successfully, but these errors were encountered: