File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -440,7 +440,7 @@ ObjectDef ::= id [Template]
440440EnumDef ::= id ClassConstr InheritClauses EnumBody
441441GivenDef ::= [GivenSig] (AnnotType [‘=’ Expr] | StructuralInstance)
442442GivenSig ::= [id] [DefTypeParamClause] {UsingParamClause} ‘:’ -- one of `id`, `DefParamClause`, `UsingParamClause` must be present
443- StructuralInstance ::= ConstrApp {‘with’ ConstrApp} [‘with’ TemplateBody ]
443+ StructuralInstance ::= ConstrApp {‘with’ ConstrApp} [‘with’ WithTemplateBody ]
444444Extension ::= ‘extension’ [DefTypeParamClause] {UsingParamClause}
445445 ‘(’ DefParam ‘)’ {UsingParamClause} ExtMethods
446446ExtMethods ::= ExtMethod | [nl] <<< ExtMethod {semi ExtMethod} >>>
@@ -454,6 +454,7 @@ ConstrExpr ::= SelfInvocation
454454 | <<< SelfInvocation {semi BlockStat} >>>
455455SelfInvocation ::= ‘this’ ArgumentExprs {ArgumentExprs}
456456
457+ WithTemplateBody ::= <<< [SelfType] TemplateStat {semi TemplateStat} >>>
457458TemplateBody ::= :<<< [SelfType] TemplateStat {semi TemplateStat} >>>
458459TemplateStat ::= Import
459460 | Export
Original file line number Diff line number Diff line change @@ -423,7 +423,7 @@ ObjectDef ::= id [Template]
423423EnumDef ::= id ClassConstr InheritClauses EnumBody
424424GivenDef ::= [GivenSig] (AnnotType [‘=’ Expr] | StructuralInstance)
425425GivenSig ::= [id] [DefTypeParamClause] {UsingParamClause} ‘:’ -- one of `id`, `DefParamClause`, `UsingParamClause` must be present
426- StructuralInstance ::= ConstrApp {‘with’ ConstrApp} [‘with’ TemplateBody ]
426+ StructuralInstance ::= ConstrApp {‘with’ ConstrApp} [‘with’ WithTemplateBody ]
427427Extension ::= ‘extension’ [DefTypeParamClause] {UsingParamClause}
428428 ‘(’ DefParam ‘)’ {UsingParamClause} ExtMethods
429429ExtMethods ::= ExtMethod | [nl] <<< ExtMethod {semi ExtMethod} >>>
@@ -437,6 +437,7 @@ ConstrExpr ::= SelfInvocation
437437 | <<< SelfInvocation {semi BlockStat} >>>
438438SelfInvocation ::= ‘this’ ArgumentExprs {ArgumentExprs}
439439
440+ WithTemplateBody ::= <<< [SelfType] TemplateStat {semi TemplateStat} >>>
440441TemplateBody ::= :<<< [SelfType] TemplateStat {semi TemplateStat} >>>
441442TemplateStat ::= Import
442443 | Export
You can’t perform that action at this time.
0 commit comments