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

           Summary: type qualifiers behave inconsistently in combination
                    with typeof
           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-11-01 03:45:28 PDT ---
tested with DMD 2.056

void main(){
    shared(int) x;
    static assert(is(typeof(x) == shared(int))); // pass
    const(typeof(x)) y;
    const(shared(int)) z;
    static assert(is(typeof(y) == typeof(z))); // fail!
}

The static assertion should pass.

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

Reply via email to