[Issue 14484] New: IFTI doesn't work with TemplateThisParameter and inheritance
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Apr 23 16:06:02 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14484
Issue ID: 14484
Summary: IFTI doesn't work with TemplateThisParameter and
inheritance
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P1
Component: DMD
Assignee: nobody at puremagic.com
Reporter: thecybershadow at gmail.com
Maybe I don't understand what TemplateThisParameter is for, but I'd think this
should work:
/////////// test.d //////////
class A
{
final void f(this This)()
{
pragma(msg, This);
}
}
class B : A
{
final void x()
{
f();
}
}
/////////////////////////////
I would expect f to be instantiated with This==B.
--
More information about the Digitalmars-d-bugs
mailing list