mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
19 lines
287 B
D
19 lines
287 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/diag14163.d(16): Error: constructor `diag14163.Bar.this` cannot call `super()` implicitly because it is annotated with `@disable`
|
|
---
|
|
*/
|
|
|
|
class Foo
|
|
{
|
|
@disable this();
|
|
}
|
|
|
|
class Bar : Foo
|
|
{
|
|
@disable this();
|
|
this(int i) {}
|
|
}
|
|
|
|
void main() {}
|