@@ -316,6 +316,11 @@ ValDcl ::= ids ‘:’ Type
316
316
VarDcl ::= ids ‘:’ Type PatDef(_, ids, tpe, EmptyTree)
317
317
DefDcl ::= DefSig [‘:’ Type] DefDef(_, name, tparams, vparamss, tpe, EmptyTree)
318
318
DefSig ::= id [DefTypeParamClause] DefParamClauses
319
+ | DefParamClause ‘.’
320
+ id [DefTypeParamClause] DefParamClauses
321
+ | DefParamClause
322
+ id [DefTypeParamClause] DefParamClause DefParamClauses
323
+
319
324
TypeDcl ::= id [TypTypeParamClause] [‘=’ Type] TypeDefTree(_, name, tparams, tpt)
320
325
| id [HkTypeParamClause] TypeBounds TypeDefTree(_, name, tparams, bounds)
321
326
@@ -329,7 +334,6 @@ PatDef ::= Pattern2 {‘,’ Pattern2} [‘:’ Type] ‘=’ Expr
329
334
VarDef ::= PatDef
330
335
| ids ‘:’ Type ‘=’ ‘_’
331
336
DefDef ::= DefSig [‘:’ Type] ‘=’ Expr DefDef(_, name, tparams, vparamss, tpe, expr)
332
- | DefSig [nl] ‘{’ Block ‘}’ DefDef(_, name, tparams, vparamss, tpe, Block)
333
337
| ‘this’ DefParamClause DefParamClauses DefDef(_, <init>, Nil, vparamss, EmptyTree, expr | Block)
334
338
(‘=’ ConstrExpr | [nl] ConstrBlock)
335
339
0 commit comments