https://issues.dlang.org/show_bug.cgi?id=21074

          Issue ID: 21074
           Summary: const lost in mixin
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

The following code fails:

alias Byte = ubyte;
alias T = mixin(q{const(Byte)})*;
static assert(is(T==const(ubyte)*)); // fails

Dmd v2.091.1 produces the error message:

Error: static assert:  is(ubyte* == const(ubyte)*) is false

--

Reply via email to