http://d.puremagic.com/issues/show_bug.cgi?id=7174
Summary: Cannot use property function call as static if condition Product: D Version: D2 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: timon.g...@gmx.ch --- Comment #0 from timon.g...@gmx.ch 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: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------