[Issue 16201] When all paths inside a static if return/throw, the portion after static if should be as if "else" were used

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jun 24 11:17:03 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=16201

--- Comment #5 from Steven Schveighoffer <schveiguy at yahoo.com> ---
Thanks for the example. That makes things much clearer.

Essentially, the else code should parse as valid D, but doesn't need to be
semantically analyzed once it's determined that the branch will never execute
(or at least the error is gagged once it's determined).

--


More information about the Digitalmars-d-bugs mailing list