www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12740] New: DMD accepts invalid version syntax

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.com

From 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