@@ -579,8 +579,8 @@ constructors as well.
579579```
580580
581581A _ primary constructor_ declaration consists of a ` <primaryConstructor> ` in
582- the declaration header plus optionally a declaration in the body starting
583- with a ` <constructorSignature> ` which is ` this ` .
582+ the declaration header plus optionally a member declaration in the body
583+ that starts with a ` <primaryConstructorBodySignature> ` .
584584
585585A class, mixin class, or extension type declaration whose class body is ` ; `
586586is treated as the corresponding declaration whose body is ` {} ` and
@@ -603,10 +603,10 @@ parsed as a switch statement or a block, never as an expression statement.*
603603* Another special exception is introduced with factory constructors in order
604604to avoid breaking existing code:*
605605
606- A factory constructor declaration of the form ` factory C(... ` including
607- zero or more of the modifiers ` const ` , ` augment ` , or ` external ` where ` C `
608- is the name of the enclosing class, mixin class, enum, or extension type is
609- treated as if ` C ` had been omitted.
606+ A factory constructor declaration of the form ` factory C(... ` optionally
607+ starting with zero or more of the modifiers ` const ` , ` augment ` , or
608+ ` external ` where ` C ` is the name of the enclosing class, mixin class, enum,
609+ or extension type is treated as if ` C ` had been omitted.
610610
611611* Without this special rule, such a declaration would declare a constructor
612612named ` C.C ` . With this rule it declares a constructor named ` C ` , which
@@ -616,8 +616,8 @@ Let _D_ be a class, extension type, or enum declaration.
616616
617617A compile-time error occurs if _ D_ includes a ` <classNameMaybePrimary> `
618618that does not contain a ` <primaryConstructor> ` , and the body of _ D_
619- contains a declaration that starts with a ` <constructorSignature> ` which is
620- ` this ` .
619+ contains a member declaration that starts with a
620+ ` <primaryConstructorBodySignature> ` .
621621
622622* It is an error to have the body part of a primary constructor in the class
623623body, but no primary constructor in the header.*
0 commit comments