Thread overview
[Issue 12206] Can't "alias this" to a template instantiation
Mar 15, 2015
Marc Schütz
Oct 19, 2018
RazvanN
Dec 17, 2022
Iain Buclaw
March 15, 2015
https://issues.dlang.org/show_bug.cgi?id=12206

Marc Schütz <schuetzm@gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schuetzm@gmx.net

--- Comment #1 from Marc Schütz <schuetzm@gmx.net> ---
Still there in DMD master. The error message is:

xx.d(15): Error: expression has no value

--
October 19, 2018
https://issues.dlang.org/show_bug.cgi?id=12206

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305@gmail.com

--- Comment #2 from RazvanN <razvan.nitu1305@gmail.com> ---
This is a weird case. The alias is part of the struct, but the actual function is not. I would say that the correct behavior is the current one:

Error : no property foo for type S.

Note that writing s.t.foo works. In my opinion, this is the real bug.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=12206

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P4

--