Skip to content

Commit 3834862

Browse files
committed
Treat stackalloc like array creation.
Fixes #1232
1 parent 41d1a00 commit 3834862

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

standard/expressions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,6 @@ primary_no_array_creation_expression
13051305
| anonymous_method_expression
13061306
| pointer_member_access // unsafe code support
13071307
| pointer_element_access // unsafe code support
1308-
| stackalloc_expression
13091308
;
13101309
```
13111310
@@ -2722,6 +2721,7 @@ array_creation_expression
27222721
array_initializer?
27232722
| 'new' array_type array_initializer
27242723
| 'new' rank_specifier array_initializer
2724+
| stackalloc_expression
27252725
;
27262726
```
27272727

0 commit comments

Comments
 (0)