Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice16035.d(18): Error: forward reference to inferred return type of function call `this.a[0].toString()`
5 fail_compilation/ice16035.d(13): Error: template instance `ice16035.Value.get!string` error instantiating
6 ---
7 */
8
9 struct Value
10 {
11 auto toString() inout
12 {
13 get!string;
14 }
15
16 T get(T)()
17 {
18 a[0].toString();
19 }
20
21 const(Value)* a;
22 }