[Issue 19060] [REG2.081] Incorrect "Using this as a type is deprecated" error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Dec 18 09:31:11 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=19060
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
CC| |bugzilla at digitalmars.com
Resolution|--- |INVALID
--- Comment #10 from Walter Bright <bugzilla at digitalmars.com> ---
(In reply to ag0aep6g from comment #9)
> Because `alias yoyo = other.x;` is the same as `alias yoyo = this.x;`. They
> both mean `alias yoyo = S.x;`. An alias can't refer to a field of a specific
> instance.
I believe that sums up this issue, and I'll mark it as invalid.
--
More information about the Digitalmars-d-bugs
mailing list