Skip to content

Commit c3fe157

Browse files
[create-pull-request] automated change (#1330)
Co-authored-by: jskeet <[email protected]>
1 parent 7052172 commit c3fe157

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

standard/grammar.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -779,11 +779,6 @@ argument_value
779779
780780
// Source: §12.8.1 General
781781
primary_expression
782-
: primary_no_array_creation_expression
783-
| array_creation_expression
784-
;
785-
786-
primary_no_array_creation_expression
787782
: literal
788783
| interpolated_string_expression
789784
| simple_name
@@ -799,6 +794,7 @@ primary_no_array_creation_expression
799794
| post_increment_expression
800795
| post_decrement_expression
801796
| null_forgiving_expression
797+
| array_creation_expression
802798
| object_creation_expression
803799
| delegate_creation_expression
804800
| anonymous_object_creation_expression
@@ -1007,12 +1003,12 @@ null_conditional_invocation_expression
10071003
10081004
// Source: §12.8.12.1 General
10091005
element_access
1010-
: primary_no_array_creation_expression '[' argument_list ']'
1006+
: primary_expression '[' argument_list ']'
10111007
;
10121008
10131009
// Source: §12.8.13 Null Conditional Element Access
10141010
null_conditional_element_access
1015-
: primary_no_array_creation_expression '?' '[' argument_list ']'
1011+
: primary_expression '?' '[' argument_list ']'
10161012
(null_forgiving_operator? dependent_access)*
10171013
;
10181014
@@ -2730,7 +2726,7 @@ pointer_member_access
27302726
27312727
// Source: §23.6.4 Pointer element access
27322728
pointer_element_access
2733-
: primary_no_array_creation_expression '[' expression ']'
2729+
: primary_expression '[' expression ']'
27342730
;
27352731
27362732
// Source: §23.6.5 The address-of operator

0 commit comments

Comments
 (0)