DEVELOPMENT EDITION · 769442725406
Diagnostics Reference
On this page

B3005: the Global contract lists more than is used

Catalog status: active. Default severity: warning. Stable name: global-unused. Family: Flow and effects.

A warning: a listed global is not used at all, or an In_Out global is never written. The contract is still correct, but it promises callers more effects than there are, which makes their proofs and flow contracts weaker.

What to do

Remove the item, or give it mode Input.

Regression source and further reading

Complete regression example: source, command arguments and expected results. The fixture deliberately reproduces this diagnostic.

See flow and effects, the code index, and diagnostic interpretation for modes, replay, fix-its and JSON.