Skip to content

Commit 444c494

Browse files
committed
Improved the local variable section similarly
1 parent e709c07 commit 444c494

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
@@ -17497,7 +17497,7 @@ \subsection{Local Variable Declaration}
1749717497
The properties of being
1749817498
\IndexCustom{initialized}{variable!initialized},
1749917499
\IndexCustom{constant}{variable!constant},
17500-
\IndexCustom{final}{variable!final}, and
17500+
\IndexCustom{immutable}{variable!immutable}, and
1750117501
\IndexCustom{mutable}{variable!mutable}
1750217502
apply to local variables with the same definitions as for other variables
1750317503
(\ref{variables}).
@@ -17586,10 +17586,9 @@ \subsection{Local Variable Declaration}
1758617586
Similarly, an expression that gives rise to an assignment to $v$
1758717587
is a compile-time error unless flow analysis shows that
1758817588
it is guaranteed that the variable has \emph{not} been initialized.%
17589-
}
1759017589

17591-
\commentary{%
17592-
It is a compile-time error to assign to a local variable
17590+
In every situation which is not covered by the previous paragraph,
17591+
it is a compile-time error to assign to a local variable
1759317592
which is \FINAL{} and not \LATE{}
1759417593
(\ref{assignment}).%
1759517594
}

0 commit comments

Comments
 (0)