Skip to content
Browse files

bugzilla 5399

  • Loading branch information...
1 parent ed40a46 commit 549bdb10978292cf38faf6b10b72fc577f54f915 @WalterBright WalterBright committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 statement.dd
View
3 statement.dd
@@ -1141,13 +1141,14 @@ $(I ReturnStatement):
unless the function contains inline assembler code.
<p>
+$(COMMENT
$(EXPRESSION) is allowed even if the function specifies
a $(D_KEYWORD void) return type. The $(EXPRESSION) will be evaluated,
but nothing will be returned.
If the $(EXPRESSION) has no side effects, and the return
type is $(D_KEYWORD void), then it is illegal.
<p>
-
+)
Before the function actually returns,
any objects with scope storage duration are destroyed,
any enclosing finally clauses are executed,

0 comments on commit 549bdb1

Please sign in to comment.
Something went wrong with that request. Please try again.