@@ -1429,7 +1429,6 @@ \section{Variables}
1429
1429
is a variable whose declaration includes the modifier \FINAL.
1430
1430
1431
1431
1432
-
1433
1432
\subsection{Implicitly Induced Getters and Setters}
1434
1433
\LMLabel{implicitlyInducedGettersAndSetters}
1435
1434
@@ -2339,8 +2338,8 @@ \subsection{Formal Parameters}
2339
2338
the formal parameter scope of $f$.
2340
2339
2341
2340
\LMHash{}%
2342
- It is a \Error{compile-time error} if a formal parameter
2343
- is declared as a constant variable (\ref{variables}) .
2341
+ It is a \Error{compile-time error} if a formal parameter declaration
2342
+ has the modifier \CONST .
2344
2343
% We put the following error here because it's shared among all kinds of
2345
2344
% functions except one.
2346
2345
It is a \Error{compile-time error} if an optional formal parameter
@@ -8642,7 +8641,7 @@ \subsection{Constants}
8642
8641
that is not qualified by a deferred prefix,
8643
8642
is a potentially constant and constant expression.
8644
8643
\commentary{%
8645
- For example, if class $C$ declares a constant class variable $v$, !!!TODO!!!
8644
+ For example, if class $C$ declares a static constant variable $v$,
8646
8645
\code{$C$.$v$} is a constant.
8647
8646
The same is true if $C$ is accessed via a prefix $p$;
8648
8647
\code{$p$.$C$.$v$} is a constant unless $p$ is a deferred prefix.%
@@ -18971,7 +18970,7 @@ \subsection{Local Variable Declaration}
18971
18970
Otherwise, the variable $v$ is bound to $o$.
18972
18971
18973
18972
\LMHash{}%
18974
- Let $D$ be a \LATE{} and \FINAL{} local variable declaration
18973
+ Let $D$ be a \LATE{} and final local variable declaration
18975
18974
that declares a variable $v$.
18976
18975
If an object $o$ is assigned to $v$
18977
18976
in a situation where $v$ is unbound
@@ -19295,7 +19294,7 @@ \subsubsection{For-in}
19295
19294
It follows that it is a compile-time error
19296
19295
% The following error exists also in the case where \id{} is definitely
19297
19296
% unassigned before the loop: The loop could run >1 time.
19298
- if $D$ is empty and \id{} is a final variable.
19297
+ if $D$ is empty and \id{} is a final or constant variable.
19299
19298
Also, it is a dynamic error if $e$ has type \DYNAMIC,
19300
19299
but $e$ evaluates to an instance of a type
19301
19300
which is not a subtype of \code{Iterable<Object?>}.%
0 commit comments