| 1 |
/* |
| 2 |
TEST_OUTPUT: |
| 3 |
--- |
| 4 |
fail_compilation/funcpostattr.d(11): Error: `deprecated` token is not allowed in postfix position |
| 5 |
fail_compilation/funcpostattr.d(11): Error: `extern` token is not allowed in postfix position |
| 6 |
fail_compilation/funcpostattr.d(15): Error: `static` token is not allowed in postfix position |
| 7 |
fail_compilation/funcpostattr.d(15): Error: `ref` token is not allowed in postfix position |
| 8 |
fail_compilation/funcpostattr.d(20): Error: `override` token is not allowed in postfix position |
| 9 |
--- |
| 10 |
*/ |
| 11 |
void foo() deprecated extern; |
| 12 |
|
| 13 |
void main() { |
| 14 |
int i; |
| 15 |
int foo() static ref => i; |
| 16 |
} |
| 17 |
|
| 18 |
class C |
| 19 |
{ |
| 20 |
void foo() override {} |
| 21 |
} |