@@ -1419,7 +1419,6 @@ \section{Variables}
1419
1419
is a variable whose declaration includes the modifier \FINAL.
1420
1420
1421
1421
1422
-
1423
1422
\subsection{Implicitly Induced Getters and Setters}
1424
1423
\LMLabel{implicitlyInducedGettersAndSetters}
1425
1424
@@ -2319,8 +2318,8 @@ \subsection{Formal Parameters}
2319
2318
the formal parameter scope of $f$.
2320
2319
2321
2320
\LMHash{}%
2322
- It is a \Error{compile-time error} if a formal parameter
2323
- is declared as a constant variable (\ref{variables}) .
2321
+ It is a \Error{compile-time error} if a formal parameter declaration
2322
+ has the modifier \CONST .
2324
2323
% We put the following error here because it's shared among all kinds of
2325
2324
% functions except one.
2326
2325
It is a \Error{compile-time error} if an optional formal parameter
@@ -8624,7 +8623,7 @@ \subsection{Constants}
8624
8623
that is not qualified by a deferred prefix,
8625
8624
is a potentially constant and constant expression.
8626
8625
\commentary{%
8627
- For example, if class $C$ declares a constant class variable $v$, !!!TODO!!!
8626
+ For example, if class $C$ declares a static constant variable $v$,
8628
8627
\code{$C$.$v$} is a constant.
8629
8628
The same is true if $C$ is accessed via a prefix $p$;
8630
8629
\code{$p$.$C$.$v$} is a constant unless $p$ is a deferred prefix.%
@@ -18948,7 +18947,7 @@ \subsection{Local Variable Declaration}
18948
18947
Otherwise, the variable $v$ is bound to $o$.
18949
18948
18950
18949
\LMHash{}%
18951
- Let $D$ be a \LATE{} and \FINAL{} local variable declaration
18950
+ Let $D$ be a \LATE{} and final local variable declaration
18952
18951
that declares a variable $v$.
18953
18952
If an object $o$ is assigned to $v$
18954
18953
in a situation where $v$ is unbound
@@ -19272,7 +19271,7 @@ \subsubsection{For-in}
19272
19271
It follows that it is a compile-time error
19273
19272
% The following error exists also in the case where \id{} is definitely
19274
19273
% unassigned before the loop: The loop could run >1 time.
19275
- if $D$ is empty and \id{} is a final variable.
19274
+ if $D$ is empty and \id{} is a final or constant variable.
19276
19275
Also, it is a dynamic error if $e$ has type \DYNAMIC,
19277
19276
but $e$ evaluates to an instance of a type
19278
19277
which is not a subtype of \code{Iterable<Object?>}.%
0 commit comments