Skip to content

Commit 9388cb3

Browse files
committed
Removed rule against return; & return e; in same function
Change-Id: I8b2e1bc5b8003b7a6fb4b6660f268a42995046dc Reviewed-on: https://dart-review.googlesource.com/71780 Reviewed-by: Lasse R.H. Nielsen <[email protected]>
1 parent 65b8ab1 commit 9388cb3

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

docs/language/dartLangSpec.tex

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8754,11 +8754,6 @@ \subsection{Return}
87548754
\LMHash{}
87558755
Executing a return statement with no expression, \code{\RETURN;} returns with no value (\ref{completion}).
87568756

8757-
\LMHash{}
8758-
% TODO(eernst): For integration of invalid_returns.md: We do allow that now, and
8759-
% many other things, eg `void foo(bool b) { if (b) return; return print(''); }`.
8760-
It is a compile-time error if a function contains both one or more explicit return statements of the form \code{\RETURN;} and one or more return statements of the form \code{\RETURN{} $e$;}.
8761-
87628757

87638758
\subsection{Labels}
87648759
\LMLabel{labels}

0 commit comments

Comments
 (0)