Replies: 2 comments 2 replies
-
I'm not getting the value here. if Person is a record, this would already work and woudl be shorter and clearer: Person bob = new() { Name = "bob" }; |
Beta Was this translation helpful? Give feedback.
0 replies
-
If I had a stake in this, I'd consider
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Version Used:
.NET 5
Steps to Reproduce:
SharpLab
Expected Behavior:
The program should compile without error.
Actual Behavior:
The compiler rejects the initialization of variable 'bob' with CS8754.
Beta Was this translation helpful? Give feedback.
All reactions