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

--- Comment #0 from 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:
------- You are receiving this mail because: -------

Reply via email to