Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/test12228.d(12): Error: undefined identifier `this`, did you mean `typeof(this)`?
5 fail_compilation/test12228.d(18): Error: undefined identifier `super`, did you mean `typeof(super)`?
6 fail_compilation/test12228.d(19): Error: undefined identifier `super`, did you mean `typeof(super)`?
7 ---
8 */
9
10 class C
11 {
12 shared(this) x;
13 }
14
15 class D : C
16 {
17 alias x = typeof(super).x;
18 shared(super) a;
19 super b;
20 }