[Issue 6474] aliasing type tuple elements' members is onerous

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jun 13 17:07:38 UTC 2020


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

Basile-z <b2.temp at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |b2.temp at gmx.com
         Resolution|---                         |WORKSFORME

--- Comment #5 from Basile-z <b2.temp at gmx.com> ---
supported since 2.068.2.

---
import std.meta : AliasSeq;

struct X(T)
{
    alias T TT;
}

alias G = AliasSeq!(int,int, X!string);

alias TT = G[2].TT;

static assert (is(TT == string))
---

--


More information about the Digitalmars-d-bugs mailing list