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

John Colvin <john.loughran.col...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #2 from John Colvin <john.loughran.col...@gmail.com> ---
How about this, which the compiler is OK with:

struct A
{
    alias a = int;
}

struct B
{
    A a;
    alias b = a.a;
}

I don't understand the logic that says we can't directly access compile-time
members of `this` at struct scope but we can access compile-time members of
member variables.

--

Reply via email to