Skip to content

Rule: Field added behind an accessor

Canonical rule slug: type-field-added-compatible. ← back to all rules

An opaque type gains a field and an accessor, which consumers cannot observe because they never see the layout.

Canonical demonstration

Used by scenarios