Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/fail15550.d

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail15550.d(25): Error: partial template instance `foo!int` has no type
5 fail_compilation/fail15550.d(26): Error: partial template instance `opDispatch!"_isMatrix"` has no type
6 fail_compilation/fail15550.d(27): Error: partial template instance `baz!"_isMatrix"` has no type
7 ---
8 */
9
10 T foo(T, T2)(T2)
11 {
12 }
13
14 struct Vector
15 {
16 void opDispatch(string, U)(U)
17 {
18 }
19
20 void baz(string, U)(U)
21 {
22 }
23 }
24
25 alias T1 = typeof(foo!int);
26 alias T2 = typeof(Vector._isMatrix);
27 alias T3 = typeof(Vector.baz!"_isMatrix");