Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail132.d(19): Error: cannot construct nested class `B` because no implicit `this` reference to outer class `A` is available
5 ---
6 */
7
8 //import std.stdio;
9
10 class A
11 {
12 class B
13 {
14 }
15 }
16
17 void main()
18 {
19 A.B c = new A.B;
20 }