Skip to content

Rule: restrict added to the definition only

Canonical rule slug: restrict-added-to-definition-only. ← back to all rules

An implementation gains restrict on its parameters while the declaration in the public header is untouched, so the contract consumers compile against is unchanged.

Canonical demonstration