| 1 |
/* |
| 2 |
TEST_OUTPUT: |
| 3 |
--- |
| 4 |
fail_compilation/fail183.d(17): Error: attribute `const` is redundant with previously-applied `in` |
| 5 |
fail_compilation/fail183.d(18): Error: attribute `scope` cannot be applied with `in`, use `-preview=in` instead |
| 6 |
fail_compilation/fail183.d(19): Error: attribute `const` is redundant with previously-applied `in` |
| 7 |
fail_compilation/fail183.d(19): Error: attribute `scope` cannot be applied with `in`, use `-preview=in` instead |
| 8 |
fail_compilation/fail183.d(20): Error: attribute `scope` cannot be applied with `in`, use `-preview=in` instead |
| 9 |
fail_compilation/fail183.d(20): Error: attribute `const` is redundant with previously-applied `in` |
| 10 |
fail_compilation/fail183.d(22): Error: attribute `in` cannot be added after `const`: remove `const` |
| 11 |
fail_compilation/fail183.d(23): Error: attribute `in` cannot be added after `scope`: remove `scope` and use `-preview=in` |
| 12 |
fail_compilation/fail183.d(24): Error: attribute `in` cannot be added after `const`: remove `const` |
| 13 |
fail_compilation/fail183.d(25): Error: attribute `in` cannot be added after `const`: remove `const` |
| 14 |
--- |
| 15 |
*/ |
| 16 |
|
| 17 |
void f1(in const int x) {} |
| 18 |
void f2(in scope int x) {} |
| 19 |
void f3(in const scope int x) {} |
| 20 |
void f4(in scope const int x) {} |
| 21 |
|
| 22 |
void f5(const in int x) {} |
| 23 |
void f6(scope in int x) {} |
| 24 |
void f7(const scope in int x) {} |
| 25 |
void f8(scope const in int x) {} |