You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/language/dartLangSpec.tex
-5Lines changed: 0 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -8754,11 +8754,6 @@ \subsection{Return}
8754
8754
\LMHash{}
8755
8755
Executing a return statement with no expression, \code{\RETURN;} returns with no value (\ref{completion}).
8756
8756
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$;}.
0 commit comments