mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
20 lines
277 B
D
20 lines
277 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
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
|
|
---
|
|
*/
|
|
|
|
class X
|
|
{
|
|
this(int n) {}
|
|
}
|
|
|
|
class Y : X
|
|
{
|
|
this() {}
|
|
}
|
|
|
|
class Z : X
|
|
{
|
|
}
|