Browse files

bugzilla 5399

  • Loading branch information...
WalterBright committed Oct 9, 2011
1 parent ed40a46 commit 549bdb10978292cf38faf6b10b72fc577f54f915
Showing with 2 additions and 1 deletion.
  1. +2 −1 statement.dd
@@ -1141,13 +1141,14 @@ $(I ReturnStatement):
unless the function contains inline assembler code.
$(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.
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.