-
Notifications
You must be signed in to change notification settings - Fork 88
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
Prohibit stackalloc int[3][1] #1232
Comments
Possible strategy: Categorize it as an array creation expression in the grammar. |
Would it help those who come after us to say something explicit, so that people don't have to try to tease apart whether or not things were blocked by design and what the rationale might have been? |
@jnm2 Yes, and the proposed solution piggy-backs on such text already in the standard:
|
In #1211 it looks like
stackalloc int[3][1]
should be valid by the standard, but Roslyn complains. We've decided it wouldn't do what is probably expected anyway, so it would be better to prohibit it in the standard.We haven't yet decided on the best approach for this (e.g. in the grammar or as an additional semantic rule in the text).
The text was updated successfully, but these errors were encountered: