[Issue 9063] New: static assert should resolve property function call

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Nov 22 19:50:12 PST 2012


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

           Summary: static assert should resolve property function call
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: k.hara.pg at gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2012-11-22 19:50:11 PST ---
These code should work.

@property bool foo(){ return true; }
static assert(foo);  // should pass assertion

@property string bar() { return "msg"; }
static assert(false, bar);  // should print "msg"

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


More information about the Digitalmars-d-bugs mailing list