blob: c64fb848484198f2a1e0499b1ee421d88c4275bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/*
TEST_OUTPUT:
---
fail_compilation/ice14130.d(10): Error: undefined identifier `Undef`
fail_compilation/ice14130.d(14): Error: none of the overloads of template `ice14130.foo` are callable using argument types `!()(int)`
fail_compilation/ice14130.d(10): Candidate is: `foo(R, F = Undef)(R r, F s = 0)`
---
*/
F foo(R, F = Undef)(R r, F s = 0) {}
void main()
{
0.foo;
}
|