Skip to content

Commit

Permalink
Specify precisely where it is an error to declare an initializing for…
Browse files Browse the repository at this point in the history
…mal parameter
  • Loading branch information
eernstg committed Dec 15, 2023
1 parent bac0586 commit e605be2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions specification/dartLangSpec.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3652,12 +3652,12 @@ \subsubsection{Generative Constructors}
It is a compile-time error if \id{} is not also the name of
an instance variable of the immediately enclosing class.

\commentary{%
Note that it is a compile-time error for an initializing formal
to occur in any function which is not a non-redirecting generative constructor
(\ref{requiredFormals}),
so there is always an enclosing class.%
}
\LMHash{}%
It is a compile-time error for an initializing formal parameter
to occur in any function which is not
a non-redirecting, non-external, generative constructor
(\ref{requiredFormals}).
\commentary{This implies that there is always an enclosing class. }

\LMHash{}%
Assume that $p$ is a declaration of an initializing formal parameter named \id.
Expand Down

0 comments on commit e605be2

Please sign in to comment.