Summary: Cannot use property function call as static if
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2011-12-27 17:51:14 PST ---
Tested with DMD 2.057:

@property bool foo(){return true;}
static if(foo){}

Error: expression foo is not constant or does not evaluate to a bool

The code should compile.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to