-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Disallow InlineArray
attribute on a record struct type.
#74072
Conversation
@@ -7983,4 +7983,7 @@ To remove the warning, you can use /reference instead (set the Embed Interop Typ | |||
<data name="IDS_FeatureAllowsRefStructConstraint" xml:space="preserve"> | |||
<value>allows ref struct constraint</value> | |||
</data> | |||
<data name="ERR_InlineArrayAttributeOnRecord" xml:space="preserve"> | |||
<value>Attribute 'System.Runtime.CompilerServices.InlineArray' cannot be applied to a record struct.</value> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also add an entry to breaking changes doc?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM Thanks (iteration 1) modulo breaking change doc question
|
||
## InlineArray attribute on a record struct type is no longer allowed. | ||
|
||
***Introduced in Visual Studio 2022 version 17.12*** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think if you merge this week it will go into VS 17.11, but that's probably not very important.
Closes #73504.