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]
440
440
EnumDef ::= id ClassConstr InheritClauses EnumBody
441
441
GivenDef ::= [GivenSig] (AnnotType [‘=’ Expr] | StructuralInstance)
442
442
GivenSig ::= [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 ]
444
444
Extension ::= ‘extension’ [DefTypeParamClause] {UsingParamClause}
445
445
‘(’ DefParam ‘)’ {UsingParamClause} ExtMethods
446
446
ExtMethods ::= ExtMethod | [nl] <<< ExtMethod {semi ExtMethod} >>>
@@ -454,6 +454,7 @@ ConstrExpr ::= SelfInvocation
454
454
| <<< SelfInvocation {semi BlockStat} >>>
455
455
SelfInvocation ::= ‘this’ ArgumentExprs {ArgumentExprs}
456
456
457
+ WithTemplateBody ::= <<< [SelfType] TemplateStat {semi TemplateStat} >>>
457
458
TemplateBody ::= :<<< [SelfType] TemplateStat {semi TemplateStat} >>>
458
459
TemplateStat ::= Import
459
460
| Export
Original file line number Diff line number Diff line change @@ -423,7 +423,7 @@ ObjectDef ::= id [Template]
423
423
EnumDef ::= id ClassConstr InheritClauses EnumBody
424
424
GivenDef ::= [GivenSig] (AnnotType [‘=’ Expr] | StructuralInstance)
425
425
GivenSig ::= [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 ]
427
427
Extension ::= ‘extension’ [DefTypeParamClause] {UsingParamClause}
428
428
‘(’ DefParam ‘)’ {UsingParamClause} ExtMethods
429
429
ExtMethods ::= ExtMethod | [nl] <<< ExtMethod {semi ExtMethod} >>>
@@ -437,6 +437,7 @@ ConstrExpr ::= SelfInvocation
437
437
| <<< SelfInvocation {semi BlockStat} >>>
438
438
SelfInvocation ::= ‘this’ ArgumentExprs {ArgumentExprs}
439
439
440
+ WithTemplateBody ::= <<< [SelfType] TemplateStat {semi TemplateStat} >>>
440
441
TemplateBody ::= :<<< [SelfType] TemplateStat {semi TemplateStat} >>>
441
442
TemplateStat ::= Import
442
443
| Export
You can’t perform that action at this time.
0 commit comments