http://d.puremagic.com/issues/show_bug.cgi?id=11198

           Summary: Error messages for declaring a 'version' inside main()
                    and other functions is unclear
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from [email protected] 2013-10-08 10:16:44 PDT ---
Declaring a version for conditional compilation within functions gives the
following errors:

Error: (condition) expected following version
Error: found '=' instead of statement

when using code such as `version = FeatureA;` in a function.

The errors do not specify that a version must be declared outside of function
code blocks.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to