1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice14130.d(10): Error: undefined identifier `Undef`
5 fail_compilation/ice14130.d(14): Error: template ice14130.foo cannot deduce function from argument types !()(int), candidates are:
6 fail_compilation/ice14130.d(10):        ice14130.foo(R, F = Undef)(R r, F s = 0)
7 ---
8 */
9 
10 F foo(R, F = Undef)(R r, F s = 0) {}
11 
12 void main()
13 {
14     0.foo;
15 }
16