d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / ice6538.d
blob9355a0fcafdf21e3a21cfa01c4585ae46e0d3631
3 /**************************************/
4 // https://issues.dlang.org/show_bug.cgi?id=9361
6 /*
7 TEST_OUTPUT:
8 ---
9 fail_compilation/ice6538.d(23): Error: template instance `Sym!(super)` expression `super` is not a valid template value argument
10 fail_compilation/ice6538.d(28): Error: template `ice6538.D.foo` is not callable using argument types `!()()`
11 fail_compilation/ice6538.d(23): Candidate is: `foo()()`
12 ---
15 template Sym(alias A)
17 enum Sym = true;
20 class C {}
21 class D : C
23 void foo()() if (Sym!(super)) {}
25 void test9361b()
27 auto d = new D();
28 d.foo();