☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail132.d
☽
☼
gcc/testsuite/gdc.test/fail_compilation/fail132.d
code
plain
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
}