[Issue 17773] this template parameter not working from derived class
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Mar 9 18:46:16 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=17773
Nick Treleaven <nick at geany.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nick at geany.org
--- Comment #1 from Nick Treleaven <nick at geany.org> ---
Reduced with commented edit:
class Base
{
size_t classSize(this This)()
{
pragma(msg, This);
return This.sizeof;
}
}
class Derived : Base
{
void foo()
{
classSize(); // added ()
}
}
Error: template `templatethisparam.Base.classSize` cannot deduce function from
argument types `!()()`, candidates are:
`templatethisparam.Base.classSize(this This)()`
--
More information about the Digitalmars-d-bugs
mailing list