@@ -1479,7 +1479,6 @@ \section{Variables}
1479
1479
is a variable whose declaration includes the modifier \FINAL.
1480
1480
1481
1481
1482
-
1483
1482
\subsection{Implicitly Induced Getters and Setters}
1484
1483
\LMLabel{implicitlyInducedGettersAndSetters}
1485
1484
@@ -2392,8 +2391,8 @@ \subsection{Formal Parameters}
2392
2391
the formal parameter scope of $f$.
2393
2392
2394
2393
\LMHash{}%
2395
- It is a \Error{compile-time error} if a formal parameter
2396
- is declared as a constant variable (\ref{variables}) .
2394
+ It is a \Error{compile-time error} if a formal parameter declaration
2395
+ has the modifier \CONST .
2397
2396
% We put the following error here because it's shared among all kinds of
2398
2397
% functions except one.
2399
2398
It is a \Error{compile-time error} if an optional formal parameter
@@ -8804,7 +8803,7 @@ \subsection{Constants}
8804
8803
that is not qualified by a deferred prefix,
8805
8804
is a potentially constant and constant expression.
8806
8805
\commentary{%
8807
- For example, if class $C$ declares a constant class variable $v$, !!!TODO!!!
8806
+ For example, if class $C$ declares a static constant variable $v$,
8808
8807
\code{$C$.$v$} is a constant.
8809
8808
The same is true if $C$ is accessed via a prefix $p$;
8810
8809
\code{$p$.$C$.$v$} is a constant unless $p$ is a deferred prefix.%
@@ -19319,7 +19318,7 @@ \subsection{Local Variable Declaration}
19319
19318
}
19320
19319
19321
19320
\LMHash{}%
19322
- Let $D$ be a \LATE{} and \FINAL{} local variable declaration
19321
+ Let $D$ be a \LATE{} and final local variable declaration
19323
19322
that declares a variable $v$.
19324
19323
If an object $o$ is assigned to $v$
19325
19324
in a situation where $v$ is unbound
@@ -19646,7 +19645,7 @@ \subsubsection{For-in}
19646
19645
It follows that it is a compile-time error
19647
19646
% The following error exists also in the case where \id{} is definitely
19648
19647
% unassigned before the loop: The loop could run >1 time.
19649
- if $D$ is empty and \id{} is a final variable.
19648
+ if $D$ is empty and \id{} is a final or constant variable.
19650
19649
Also, it is a dynamic error if $e$ has type \DYNAMIC,
19651
19650
but $e$ evaluates to an instance of a type
19652
19651
which is not a subtype of \code{Iterable<Object?>}.%
0 commit comments