1 // EXTRA_SOURCES: imports/template2962a.d 2 3 // comment 29 foo(T)4void foo(T)(T p) 5 { 6 void inner(U)() { 7 auto p2 = p; 8 } 9 inner!int(); 10 } 11 12 // comment 20 funcD(alias x)13void funcD(alias x)() { 14 assert(x==1.0); 15 } 16 funcC(T)17void funcC(T)(double a){ 18 // Case 1: ICE(glue.c) 19 funcD!(a)(); 20 21 // Case 2: wrong code 22 double b = 1.0; funcD!(b)(); 23 } 24 bug2962comment36()25void bug2962comment36()(int p) 26 { 27 int inner()() { return p; } 28 alias inner!() finner; 29 } 30 31