Skip to content

Commit 17e2061

Browse files
committed
Improved the local variable section similarly
1 parent 468c8cc commit 17e2061

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

specification/dartLangSpec.tex

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17543,7 +17543,7 @@ \subsection{Local Variable Declaration}
1754317543
The properties of being
1754417544
\IndexCustom{initialized}{variable!initialized},
1754517545
\IndexCustom{constant}{variable!constant},
17546-
\IndexCustom{final}{variable!final}, and
17546+
\IndexCustom{immutable}{variable!immutable}, and
1754717547
\IndexCustom{mutable}{variable!mutable}
1754817548
apply to local variables with the same definitions as for other variables
1754917549
(\ref{variables}).
@@ -17632,10 +17632,9 @@ \subsection{Local Variable Declaration}
1763217632
Similarly, an expression that gives rise to an assignment to $v$
1763317633
is a compile-time error unless flow analysis shows that
1763417634
it is guaranteed that the variable has \emph{not} been initialized.%
17635-
}
1763617635

17637-
\commentary{%
17638-
It is a compile-time error to assign to a local variable
17636+
In every situation which is not covered by the previous paragraph,
17637+
it is a compile-time error to assign to a local variable
1763917638
which is \FINAL{} and not \LATE{}
1764017639
(\ref{assignment}).%
1764117640
}

0 commit comments

Comments
 (0)