@@ -1488,7 +1488,6 @@ \section{Variables}
14881488is a variable whose declaration includes the modifier \FINAL.
14891489
14901490
1491-
14921491\subsection{Implicitly Induced Getters and Setters}
14931492\LMLabel{implicitlyInducedGettersAndSetters}
14941493
@@ -2401,8 +2400,8 @@ \subsection{Formal Parameters}
24012400the formal parameter scope of $f$.
24022401
24032402\LMHash{}%
2404- It is a \Error{compile-time error} if a formal parameter
2405- is declared as a constant variable (\ref{variables}) .
2403+ It is a \Error{compile-time error} if a formal parameter declaration
2404+ has the modifier \CONST .
24062405% We put the following error here because it's shared among all kinds of
24072406% functions except one.
24082407 It is a \Error{compile-time error} if an optional formal parameter
@@ -8827,7 +8826,7 @@ \subsection{Constants}
88278826 that is not qualified by a deferred prefix,
88288827 is a potentially constant and constant expression.
88298828 \commentary{%
8830- For example, if class $C$ declares a constant class variable $v$, !!!TODO!!!
8829+ For example, if class $C$ declares a static constant variable $v$,
88318830 \code{$C$.$v$} is a constant.
88328831 The same is true if $C$ is accessed via a prefix $p$;
88338832 \code{$p$.$C$.$v$} is a constant unless $p$ is a deferred prefix.%
@@ -19342,7 +19341,7 @@ \subsection{Local Variable Declaration}
1934219341}
1934319342
1934419343\LMHash{}%
19345- Let $D$ be a \LATE{} and \FINAL{} local variable declaration
19344+ Let $D$ be a \LATE{} and final local variable declaration
1934619345that declares a variable $v$.
1934719346If an object $o$ is assigned to $v$
1934819347in a situation where $v$ is unbound
@@ -19669,7 +19668,7 @@ \subsubsection{For-in}
1966919668 It follows that it is a compile-time error
1967019669 % The following error exists also in the case where \id{} is definitely
1967119670 % unassigned before the loop: The loop could run >1 time.
19672- if $D$ is empty and \id{} is a final variable.
19671+ if $D$ is empty and \id{} is a final or constant variable.
1967319672 Also, it is a dynamic error if $e$ has type \DYNAMIC,
1967419673 but $e$ evaluates to an instance of a type
1967519674 which is not a subtype of \code{Iterable<Object?>}.%
0 commit comments