File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
accepted/future-releases/records Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -170,12 +170,8 @@ The grammar is:
170
170
171
171
```
172
172
// Existing rules:
173
- type ::= functionType '?'? // Existing production.
174
- | recordType // New production.
175
- | typeNotFunction // Existing production.
176
-
177
173
typeNotFunction ::= 'void' // Existing production.
178
- | recordType // New production.
174
+ | recordType '?'? // New production.
179
175
| typeNotVoidNotFunction // Existing production.
180
176
181
177
// New rules:
@@ -188,8 +184,7 @@ recordTypeField ::= metadata type identifier?
188
184
189
185
recordTypeNamedFields ::= '{' recordTypeNamedField
190
186
( ',' recordTypeNamedField )* ','? '}'
191
- recordTypeNamedField ::= type identifier
192
- recordTypeNamedField ::= metadata typedIdentifier
187
+ recordTypeNamedField ::= metadata type identifier
193
188
```
194
189
195
190
* The grammar is exactly the same as ` parameterTypeList ` in function types but
You can’t perform that action at this time.
0 commit comments