digitalmars.D.bugs - [Issue 12740] New: DMD accepts invalid version syntax
- via Digitalmars-d-bugs (22/23) May 12 2014 https://issues.dlang.org/show_bug.cgi?id=12740
https://issues.dlang.org/show_bug.cgi?id=12740 Issue ID: 12740 Summary: DMD accepts invalid version syntax Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: DMD Assignee: nobody puremagic.com Reporter: briancschott gmail.comFrom the vibe.d source:------ version (VibeCustomMain) {} else: ------ The language specification does not say that "else:" is valid, and it is not consistent with the normal usage of "else". If you try this with a normal else block, the compiler correctly gives the error message "Error: found ':' instead of statement". --
May 12 2014