@@ -1424,7 +1424,6 @@ \section{Variables}
1424
1424
is a variable whose declaration includes the modifier \FINAL.
1425
1425
1426
1426
1427
-
1428
1427
\subsection{Implicitly Induced Getters and Setters}
1429
1428
\LMLabel{implicitlyInducedGettersAndSetters}
1430
1429
@@ -2334,8 +2333,8 @@ \subsection{Formal Parameters}
2334
2333
the formal parameter scope of $f$.
2335
2334
2336
2335
\LMHash{}%
2337
- It is a \Error{compile-time error} if a formal parameter
2338
- is declared as a constant variable (\ref{variables}) .
2336
+ It is a \Error{compile-time error} if a formal parameter declaration
2337
+ has the modifier \CONST .
2339
2338
% We put the following error here because it's shared among all kinds of
2340
2339
% functions except one.
2341
2340
It is a \Error{compile-time error} if an optional formal parameter
@@ -8637,7 +8636,7 @@ \subsection{Constants}
8637
8636
that is not qualified by a deferred prefix,
8638
8637
is a potentially constant and constant expression.
8639
8638
\commentary{%
8640
- For example, if class $C$ declares a constant class variable $v$, !!!TODO!!!
8639
+ For example, if class $C$ declares a static constant variable $v$,
8641
8640
\code{$C$.$v$} is a constant.
8642
8641
The same is true if $C$ is accessed via a prefix $p$;
8643
8642
\code{$p$.$C$.$v$} is a constant unless $p$ is a deferred prefix.%
@@ -18962,7 +18961,7 @@ \subsection{Local Variable Declaration}
18962
18961
Otherwise, the variable $v$ is bound to $o$.
18963
18962
18964
18963
\LMHash{}%
18965
- Let $D$ be a \LATE{} and \FINAL{} local variable declaration
18964
+ Let $D$ be a \LATE{} and final local variable declaration
18966
18965
that declares a variable $v$.
18967
18966
If an object $o$ is assigned to $v$
18968
18967
in a situation where $v$ is unbound
@@ -19286,7 +19285,7 @@ \subsubsection{For-in}
19286
19285
It follows that it is a compile-time error
19287
19286
% The following error exists also in the case where \id{} is definitely
19288
19287
% unassigned before the loop: The loop could run >1 time.
19289
- if $D$ is empty and \id{} is a final variable.
19288
+ if $D$ is empty and \id{} is a final or constant variable.
19290
19289
Also, it is a dynamic error if $e$ has type \DYNAMIC,
19291
19290
but $e$ evaluates to an instance of a type
19292
19291
which is not a subtype of \code{Iterable<Object?>}.%
0 commit comments