mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
18 lines
285 B
D
18 lines
285 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail154.d(18): Error: template instance `X!(MYP!int)` does not match template declaration `X(T : Policy!T, alias Policy)`
|
|
---
|
|
*/
|
|
|
|
class X(T:Policy!(T), alias Policy)
|
|
{
|
|
mixin Policy!(T);
|
|
}
|
|
|
|
template MYP(T)
|
|
{
|
|
void foo(T);
|
|
}
|
|
|
|
X!(MYP!(int)) x;
|