Rule: restrict added to the definition only¶
Canonical rule slug: restrict-added-to-definition-only. ← back to all rules
An implementation gains
restricton its parameters while the declaration in the public header is untouched, so the contract consumers compile against is unchanged.
Canonical demonstration¶
- case208_restrict_added_to_definition_only —
restrictAdded to the Definition Only (✅ NO_CHANGE)