mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
20 lines
265 B
D
20 lines
265 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail132.d(19): Error: cannot construct nested class `B` because no implicit `this` reference to outer class `A` is available
|
|
---
|
|
*/
|
|
|
|
//import std.stdio;
|
|
|
|
class A
|
|
{
|
|
class B
|
|
{
|
|
}
|
|
}
|
|
|
|
void main()
|
|
{
|
|
A.B c = new A.B;
|
|
}
|