-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for init
properties in dynamic binder
#40118
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
@HaloFour I assume you expect this to not compile in c#, additionally the runtime to also throw? |
I'd expect it to compile in C# (since it's being cast to If you take |
Tagging subscribers to this area: @cston |
Also see: dotnet/csharplang#3376 (comment) |
See: dotnet/csharplang#39 (comment)
Seems that the C# runtime binder ignores
modreq
metadata on members. This enablesinit
properties to be trivially mutated by casting todynamic
:The text was updated successfully, but these errors were encountered: