www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22189] New: type qualifier not applied to type tuple

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

          Issue ID: 22189
           Summary: type qualifier not applied to type tuple
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: critical
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: john.loughran.colvin gmail.com

alias AliasSeq(Args...) = Args;

alias T = AliasSeq!(int, float);
immutable(T) a;
immutable T b;

static assert(is(typeof(a) == typeof(a)));
static assert(is(typeof(b) == typeof(b)));
static assert(is(typeof(a) == typeof(b))); // Error: static assert:  `is((int,
float) == (immutable(int), immutable(float)))` is false

--
Aug 06