August 14, 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@puremagic.com
          Reporter: john.loughran.colvin@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.

--