Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/diag8928.d(18): Error: class `diag8928.Z` cannot implicitly generate a default constructor when base class `diag8928.X` is missing a default constructor
5 ---
6 */
7
8 class X
9 {
10 this(int n) {}
11 }
12
13 class Y : X
14 {
15 this() {}
16 }
17
18 class Z : X
19 {
20 }