Skip to content

Commit 066fbfc

Browse files
committed
Fix grammar to allow arrays of nullable reference types
1 parent 286b10a commit 066fbfc

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

standard/types.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,13 @@ interface_type
5454
;
5555
5656
array_type
57-
: non_array_type rank_specifier+
57+
: array_type nullable_type_annotation rank_specifier+
58+
| non_array_type rank_specifier+
5859
;
5960
6061
non_array_type
6162
: value_type
62-
| class_type
63-
| interface_type
64-
| delegate_type
65-
| 'dynamic'
66-
| type_parameter
63+
| (class_type | interface_type | delegate_type | 'dynamic' | type_parameter) nullable_type_annotation?
6764
| pointer_type // unsafe code support
6865
;
6966

0 commit comments

Comments
 (0)