We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It feels like it should be allowed to apply an attribute to the property associated with a positional record parameter. e.g.
// implicitly applies attribute to both parameter and property? data class Record([MyAttr] string Prop);
or
data class Record([property: MyAttr] string Prop);
We should also consider nullable attributes.
The text was updated successfully, but these errors were encountered:
Support applying attributes to properties and fields that are created…
58233a7
… to back primary constructor parameters in records. Closes dotnet#44691.
ba014d9
… to back primary constructor parameters in records. (#45908) Closes #44691.
AlekseyTs
Successfully merging a pull request may close this issue.
It feels like it should be allowed to apply an attribute to the property associated with a positional record parameter. e.g.
or
We should also consider nullable attributes.
The text was updated successfully, but these errors were encountered: