@@ -161,7 +161,7 @@ SimpleType ::= SimpleLiteral
161
161
SimpleType1 ::= id Ident(name)
162
162
| Singleton ‘.’ id Select(t, name)
163
163
| Singleton ‘.’ ‘type’ SingletonTypeTree(p)
164
- | ‘(’ ArgTypes ‘)’ Tuple(ts)
164
+ | ‘(’ Types ‘)’ Tuple(ts)
165
165
| Refinement RefinedTypeTree(EmptyTree, refinement)
166
166
| ‘$’ ‘{’ Block ‘}’
167
167
| SimpleType1 TypeArgs AppliedTypeTree(t, args)
@@ -170,16 +170,13 @@ Singleton ::= SimpleRef
170
170
| SimpleLiteral
171
171
| Singleton ‘.’ id
172
172
-- not yet | Singleton ‘(’ Singletons ‘)’
173
- -- not yet | Singleton ‘[’ ArgTypes ‘]’
173
+ -- not yet | Singleton ‘[’ Types ‘]’
174
174
Singletons ::= Singleton { ‘,’ Singleton }
175
- ArgTypes ::= Types
176
175
FunArgType ::= Type
177
176
| ‘=>’ Type PrefixOp(=>, t)
178
177
ParamType ::= [‘=>’] ParamValueType
179
178
ParamValueType ::= Type [‘*’] PostfixOp(t, "*")
180
- TypeArgs ::= ‘[’ ArgTypes ‘]’ ts
181
- NamedTypeArg ::= id ‘=’ Type NamedArg(id, t)
182
- NamedTypeArgs ::= ‘[’ NamedTypeArg {‘,’ NamedTypeArg} ‘]’ nts
179
+ TypeArgs ::= ‘[’ Types ‘]’ ts
183
180
Refinement ::= ‘{’ [RefineDcl] {semi [RefineDcl]} ‘}’ ds
184
181
TypeBounds ::= [‘>:’ Type] [‘<:’ Type] TypeBoundsTree(lo, hi)
185
182
TypeParamBounds ::= TypeBounds {‘:’ Type} ContextBounds(typeBounds, tps)
0 commit comments