mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
15 lines
353 B
D
15 lines
353 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/ice14130.d(10): Error: undefined identifier `Undef`
|
|
fail_compilation/ice14130.d(14): Error: template `foo` is not 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;
|
|
}
|