Skip to content

Commit

Permalink
Treat stackalloc like array creation.
Browse files Browse the repository at this point in the history
Fixes #1232
  • Loading branch information
gafter committed Dec 15, 2024
1 parent 41d1a00 commit 3834862
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion standard/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -1305,7 +1305,6 @@ primary_no_array_creation_expression
| anonymous_method_expression
| pointer_member_access // unsafe code support
| pointer_element_access // unsafe code support
| stackalloc_expression
;
```
Expand Down Expand Up @@ -2722,6 +2721,7 @@ array_creation_expression
array_initializer?
| 'new' array_type array_initializer
| 'new' rank_specifier array_initializer
| stackalloc_expression
;
```
Expand Down

0 comments on commit 3834862

Please sign in to comment.