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) do { return null; } 11 bar!T foo2(T2)() { return null; } 12 bar!T foo3(T2 = void)() if (true) do { return null; } 13 bar!T foo4(T2 = void)() { return null; } 14 void foo5(T2)(bar!T x) if (true) do {} 15 void foo6(T2)(bar!T x) {} 16 void foo7(T2 = void)(bar!T x) if (true) do {} 17 void foo8(T2 = void)(bar!T x) {} 18 } 19