Fields generated from primary constructor parameters are incorrectly referenced by the Generate Equals and GetHashCode...
codefix.
#76916
Labels
Area-IDE
Bug
help wanted
The issue is "up for grabs" - add a comment if you are interested in working on it
Milestone
Versions Used:
Compiler version: '4.12.0-3.24572.7 (dfa7fc6)'. Language version: preview.
Steps to Reproduce:
Applying the
Generate Equals and GetHashCode...
codefix to a type using primary ctor parameters captured in fields:produces this dialog:
and this generated code:
Expected Behavior:
The dialog, as well as the generated code use the user-facing primary ctor parameter name
a
.Actual Behavior:
The dialog, as well as the generated code use the generated field name
<a>P
.The text was updated successfully, but these errors were encountered: