Skip to content

Commit

Permalink
fix Issue 516 - Mutually calling constructors allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Jan 21, 2012
1 parent 9555308 commit d26103e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion class.dd
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,9 @@ this() { }
apply:)

$(OL
$(LI It is illegal for constructors to mutually call each other:
$(LI It is illegal for constructors to mutually call each other,
although the compiler is not required to detect it. It will result
in undefined behavior.

------
this() { this(1); }
Expand Down

0 comments on commit d26103e

Please sign in to comment.