November 06, 2018
https://issues.dlang.org/show_bug.cgi?id=19060

--- Comment #9 from ag0aep6g <ag0aep6g@gmail.com> ---
(In reply to RazvanN from comment #8)
> This is surprising, indeed, and I would say that this is a bug. Why would it do that?

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.

--
December 18, 2019
https://issues.dlang.org/show_bug.cgi?id=19060

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|---                         |INVALID

--- Comment #10 from Walter Bright <bugzilla@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.

--
1 2
Next ›   Last »