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