gcc/testsuite/gdc.test/fail_compilation/diag_template_this.d
raw| 1 | /** |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/diag_template_this.d(1): Error: identifier expected for template `this` parameter |
| 5 | fail_compilation/diag_template_this.d(1): Error: found `this` when expecting `(` |
| 6 | fail_compilation/diag_template_this.d(1): Error: semicolon expected following function declaration, not `(` |
| 7 | fail_compilation/diag_template_this.d(1): Error: declaration expected, not `)` |
| 8 | --- |
| 9 | */ |
| 10 | #line 1 |
| 11 | void func1(this this)() {} |