gcc/testsuite/gdc.test/fail_compilation/diag14163.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/diag14163.d(16): Error: constructor `diag14163.Bar.this` cannot call `super()` implicitly because it is annotated with `@disable` |
| 5 | --- |
| 6 | */ |
| 7 | |
| 8 | class Foo |
| 9 | { |
| 10 | @disable this(); |
| 11 | } |
| 12 | |
| 13 | class Bar : Foo |
| 14 | { |
| 15 | @disable this(); |
| 16 | this(int i) {} |
| 17 | } |
| 18 | |
| 19 | void main() {} |