Summary: inout incorrectly resolved if the same type has both
                    mutable and immutable parts
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2012-01-23 16:41:58 PST ---
DMD 2.058head

inout(int*)* foo(inout(int*)* x){return x;}
immutable(int)** x;
static assert(is(typeof(foo(x))==const(int*)*));

Error: static assert  (is(typeof(foo((__error))) == const(int*)*)) is false

The assertion should pass.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to