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