It's a little confusing to mention public by default here.
```d
synchronized class Foo {
    int foo; // disallowed: public field
}
```