1 // ICE(template.c) in DMD0.080 2 /* 3 TEST_OUTPUT: 4 --- 5 fail_compilation/fail16.d(19): Error: function declaration without return type. (Note that constructors are always named `this`) 6 fail_compilation/fail16.d(19): Error: no identifier for declarator `bar!(typeof(X))(X)` 7 --- 8 */ 9 10 int i; 11 bar(T)12template bar(T) 13 { 14 void bar(int x) {} 15 } 16 foo(alias X)17template foo(alias X) 18 { 19 bar!(typeof(X))(X); 20 } 21 22 main()23void main() 24 { 25 foo!(i); 26 } 27 28