[Issue 8234] New: symbols used in CTFE affect the function literal type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 13 07:31:06 PDT 2012


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

           Summary: symbols used in CTFE affect the function literal type
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: timon.gehr at gmx.ch


--- Comment #0 from timon.gehr at gmx.ch 2012-06-13 07:33:14 PDT ---
DMD 2.059:

void foo(){
    immutable int x = 0;
    static assert(is(typeof(*(){enum e=x;return e;})==function)); // fail
}

The static assertion should pass.

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