Self Types

Those properties/methods can be internal or protected. Of course a naming convention and/or OptIn can also help. But the technique at least solves the problem from the consumer point of view although we don’t get the nice compile-time checking.

1 Like