Allow spread in Object Initializers with collection read-only property initialization #8670
Replies: 1 comment
-
Sorry, duplicate of #8336 |
Beta Was this translation helpful? Give feedback.
0 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.
-
Right now, using inline spread for Object Initializers with collection read-only property initialization is not allowed:
Any reason this is not allowed? I am not sure what C# is attempting now but the error seems strange:
Beta Was this translation helpful? Give feedback.
All reactions