[Issue 566] Adding non-static members and functions to classes using a template doesn't error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Apr 19 14:20:44 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=566
------- Comment #5 from dvdfrdmn at users.sf.net 2008-04-19 16:20 -------
A slightly different test case. The following compiles, but fails to link.
----
interface TestInterface
{ void tpl(T)(); }
class TestImplementation : TestInterface
{ void tpl(T)() { } }
void main()
{
/* TestImplementation t = new TestImplementation(); // works */
TestInterface t = new TestImplementation(); // fails
t.tpl!(int)();
}
---
--
More information about the Digitalmars-d-bugs
mailing list