Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail7424i.d(10): Error: template `this.g()() immutable` has no value
5 ---
6 */
7 struct S7424g
8 {
9 @property int g()() immutable { return 0; }
10 void test() inout { int f = g; }
11 }