Source

gdc / gdc.test / fail_compilation / fail242.d

Full commit
interface TestInterface 
{
    void tpl(T)();
//    int x;
}

class TestImplementation : TestInterface 
  { void tpl(T)() { } }

void main()
{
  /* TestImplementation t = new TestImplementation(); // works */

  TestInterface t = new TestImplementation(); // fails

  t.tpl!(int)();
}