You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whathecode
changed the title
Interface types used in immutable classes also need to be immutable.
Should interface types used in immutable classes also need to be immutable?
Aug 13, 2020
It was pointed out to me that:
When an abstract or interface type is used as a property in an immutable class, the extending classes might still contain mutable properties.
Therefore, we should likely require such types to also have the immutable annotation applied. Or, is this not a problem?
The text was updated successfully, but these errors were encountered: