[Issue 19167] Overzealous "Using this as a type is deprecated"
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Aug 14 12:35:22 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=19167
John Colvin <john.loughran.colvin at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |---
--- Comment #2 from John Colvin <john.loughran.colvin at 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.
--
More information about the Digitalmars-d-bugs
mailing list