[Issue 19167] New: Overzealous "Using this as a type is deprecated"
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Aug 14 09:11:34 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=19167
Issue ID: 19167
Summary: Overzealous "Using this as a type is deprecated"
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: john.loughran.colvin at gmail.com
struct A
{
alias a = int;
alias b = this.a;
// Deprecation: Using this as a type is deprecated. Use typeof(this)
instead
}
A a;
alias b = a.a; // OK
This seems inconsistent.
--
More information about the Digitalmars-d-bugs
mailing list