| 1 |
/* |
| 2 |
TEST_OUTPUT: |
| 3 |
--- |
| 4 |
fail_compilation/fail7903.d(21): Error: variable `fail7903.F1.x` Field members of a `synchronized` class cannot be `public` |
| 5 |
fail_compilation/fail7903.d(22): Error: variable `fail7903.F1.y` Field members of a `synchronized` class cannot be `export` |
| 6 |
fail_compilation/fail7903.d(27): Error: variable `fail7903.F2.x` Field members of a `synchronized` class cannot be `public` |
| 7 |
--- |
| 8 |
*/ |
| 9 |
synchronized class K1 |
| 10 |
{ |
| 11 |
public struct S { } |
| 12 |
} |
| 13 |
|
| 14 |
synchronized class K2 |
| 15 |
{ |
| 16 |
struct S { } |
| 17 |
} |
| 18 |
|
| 19 |
synchronized class F1 |
| 20 |
{ |
| 21 |
public int x; |
| 22 |
export int y; |
| 23 |
} |
| 24 |
|
| 25 |
synchronized class F2 |
| 26 |
{ |
| 27 |
int x; |
| 28 |
} |