[Issue 6056] Type lookup problem in string mixins

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Oct 4 11:40:12 PDT 2011


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


Kenji Hara <k.hara.pg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch, rejects-valid


--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> 2011-10-04 11:39:25 PDT ---
string-mixin is also not needed.

alias const(typeof('c')*) A;
alias const(typeof(0)*) B;
static assert(is(B == const(int*)));

And template instance has same issue.

template X(T) { alias T X; }
alias const(X!char*) A;
alias const(X!int*) B;
static assert(is(B == const(int*)));

Patch:
https://github.com/D-Programming-Language/dmd/pull/430

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


More information about the Digitalmars-d-bugs mailing list