]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/fail154.d
Add D front-end, libphobos library, and D2 testsuite.
[gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail154.d
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail154.d(18): Error: template instance X!(MYP!int) does not match template declaration X(T : Policy!T, alias Policy)
5 ---
6 */
7
8 class X(T:Policy!(T), alias Policy)
9 {
10 mixin Policy!(T);
11 }
12
13 template MYP(T)
14 {
15 void foo(T);
16 }
17
18 X!(MYP!(int)) x;
This page took 0.037621 seconds and 5 git commands to generate.