]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/fail132.d
d: Import dmd b8384668f, druntime e6caaab9, phobos 5ab9ad256 (v2.098.0-beta.1)
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail132.d
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail132.d(19): Error: outer class `A` `this` needed to `new` nested class `B`
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 }