Skip to content

Commit f159573

Browse files
committed
Responding to comments on #4543
1 parent ed88886 commit f159573

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

accepted/future-releases/primary-constructors/feature-specification.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -579,8 +579,8 @@ constructors as well.
579579
```
580580

581581
A _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

585585
A class, mixin class, or extension type declaration whose class body is `;`
586586
is 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
604604
to 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
612612
named `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

617617
A compile-time error occurs if _D_ includes a `<classNameMaybePrimary>`
618618
that 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
623623
body, but no primary constructor in the header.*

0 commit comments

Comments
 (0)