Skip to content

Commit eae001f

Browse files
committed
Improved the local variable section similarly
1 parent b75387a commit eae001f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

specification/dartLangSpec.tex

+3-4
Original file line numberDiff line numberDiff line change
@@ -17651,7 +17651,7 @@ \subsection{Local Variable Declaration}
1765117651
The properties of being
1765217652
\IndexCustom{initialized}{variable!initialized},
1765317653
\IndexCustom{constant}{variable!constant},
17654-
\IndexCustom{final}{variable!final}, and
17654+
\IndexCustom{immutable}{variable!immutable}, and
1765517655
\IndexCustom{mutable}{variable!mutable}
1765617656
apply to local variables with the same definitions as for other variables
1765717657
(\ref{variables}).
@@ -17740,10 +17740,9 @@ \subsection{Local Variable Declaration}
1774017740
Similarly, an expression that gives rise to an assignment to $v$
1774117741
is a compile-time error unless flow analysis shows that
1774217742
it is guaranteed that the variable has \emph{not} been initialized.%
17743-
}
1774417743

17745-
\commentary{%
17746-
It is a compile-time error to assign to a local variable
17744+
In every situation which is not covered by the previous paragraph,
17745+
it is a compile-time error to assign to a local variable
1774717746
which is \FINAL{} and not \LATE{}
1774817747
(\ref{assignment}).%
1774917748
}

0 commit comments

Comments
 (0)