[Issue 16123] alias member of member

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Jun 6 07:56:24 PDT 2016


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

--- Comment #1 from Sobirari Muhomori <dfj1esp02 at sneakemail.com> ---
I guess, you can alias a symbol, but then the compiler doesn't know what S's
symbol in T struct means.

struct S
{
   int x;
   alias y = x;
}

actually means

struct S
{
   int x;
   alias y = S.x;
}


struct T
{
   S s;
   alias y = S.x; // what this means?
}

--


More information about the Digitalmars-d-bugs mailing list