mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
17 lines
318 B
D
17 lines
318 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail319.d(16): Error: template instance `fail319.f!(int, int)` does not match template declaration `f(T...)()`
|
|
with `T = (int, int)`
|
|
must satisfy the following constraint:
|
|
` T.length > 20`
|
|
---
|
|
*/
|
|
|
|
void f(T...)() if (T.length > 20)
|
|
{}
|
|
|
|
void main()
|
|
{
|
|
f!(int, int)();
|
|
}
|