gcc/testsuite/gdc.test/fail_compilation/ice9273a.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/ice9273a.d(19): Error: constructor `ice9273a.C.__ctor!().this` no match for implicit `super()` call in constructor |
| 5 | fail_compilation/ice9273a.d(23): Error: template instance `ice9273a.C.__ctor!()` error instantiating |
| 6 | --- |
| 7 | */ |
| 8 | |
| 9 | template CtorMixin() |
| 10 | { |
| 11 | this(T)() {} |
| 12 | } |
| 13 | class B |
| 14 | { |
| 15 | mixin CtorMixin!(); |
| 16 | } |
| 17 | class C : B |
| 18 | { |
| 19 | this()() {} |
| 20 | } |
| 21 | void main() |
| 22 | { |
| 23 | auto c = new C(); |
| 24 | } |