@@ -161,7 +161,7 @@ SimpleType ::= SimpleLiteral
161161SimpleType1 ::= id Ident(name)
162162 | Singleton ‘.’ id Select(t, name)
163163 | Singleton ‘.’ ‘type’ SingletonTypeTree(p)
164- | ‘(’ ArgTypes ‘)’ Tuple(ts)
164+ | ‘(’ Types ‘)’ Tuple(ts)
165165 | Refinement RefinedTypeTree(EmptyTree, refinement)
166166 | ‘$’ ‘{’ Block ‘}’
167167 | SimpleType1 TypeArgs AppliedTypeTree(t, args)
@@ -170,16 +170,13 @@ Singleton ::= SimpleRef
170170 | SimpleLiteral
171171 | Singleton ‘.’ id
172172-- not yet | Singleton ‘(’ Singletons ‘)’
173- -- not yet | Singleton ‘[’ ArgTypes ‘]’
173+ -- not yet | Singleton ‘[’ Types ‘]’
174174Singletons ::= Singleton { ‘,’ Singleton }
175- ArgTypes ::= Types
176175FunArgType ::= Type
177176 | ‘=>’ Type PrefixOp(=>, t)
178177ParamType ::= [‘=>’] ParamValueType
179178ParamValueType ::= Type [‘*’] PostfixOp(t, "*")
180- TypeArgs ::= ‘[’ ArgTypes ‘]’ ts
181- NamedTypeArg ::= id ‘=’ Type NamedArg(id, t)
182- NamedTypeArgs ::= ‘[’ NamedTypeArg {‘,’ NamedTypeArg} ‘]’ nts
179+ TypeArgs ::= ‘[’ Types ‘]’ ts
183180Refinement ::= ‘{’ [RefineDcl] {semi [RefineDcl]} ‘}’ ds
184181TypeBounds ::= [‘>:’ Type] [‘<:’ Type] TypeBoundsTree(lo, hi)
185182TypeParamBounds ::= TypeBounds {‘:’ Type} ContextBounds(typeBounds, tps)
0 commit comments