1 module imports.gdc170; 2 bar(T)3class bar(T) 4 { 5 void undefined_reference() {} 6 } 7 foo(T)8template foo(T) 9 { 10 bar!T foo1(T2)() if (true) body { return null; } 11 bar!T foo2(T2)() { return null; } 12 bar!T foo3(T2 = void)() if (true) body { return null; } 13 bar!T foo4(T2 = void)() { return null; } 14 void foo5(T2)(bar!T x) if (true) body {} 15 void foo6(T2)(bar!T x) {} 16 void foo7(T2 = void)(bar!T x) if (true) body {} 17 void foo8(T2 = void)(bar!T x) {} 18 } 19