-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
4 - In ReviewA fix for the issue is submitted for review.A fix for the issue is submitted for review.Area-CompilersBugConcept-Diagnostic ClarityThe issues deals with the ease of understanding of errors and warnings.The issues deals with the ease of understanding of errors and warnings.
Milestone
Description
Version Used: 3.8.0-3.20458.6
Steps to Reproduce:
Run the following code:
Console.WriteLine (new Test(1).X == 1);
record Test (int X)
{
int _x;
public int X { get => _x; init => _x = value; }
}
Expected Behavior:
This should print "True"
Actual Behavior:
It prints "False"
The auto-generated constructor fails to set the X property.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
4 - In ReviewA fix for the issue is submitted for review.A fix for the issue is submitted for review.Area-CompilersBugConcept-Diagnostic ClarityThe issues deals with the ease of understanding of errors and warnings.The issues deals with the ease of understanding of errors and warnings.