gcc/testsuite/gdc.test/fail_compilation/fail18228.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/fail18228.d(12): Error: undefined identifier `this`, did you mean `typeof(this)`? |
| 5 | fail_compilation/fail18228.d(13): Error: undefined identifier `this`, did you mean `typeof(this)`? |
| 6 | fail_compilation/fail18228.d(14): Error: undefined identifier `super`, did you mean `typeof(super)`? |
| 7 | --- |
| 8 | */ |
| 9 | |
| 10 | class C |
| 11 | { |
| 12 | this(this a) {} |
| 13 | this(int a, this b) {} |
| 14 | this(super a) {} |
| 15 | } |