DEVELOPMENT EDITION · 769442725406
Diagnostics Reference
On this page

B0106: = used for assignment

Catalog status: active. Default severity: error. Stable name: equals-for-assignment. Family: Syntax and source text.

In Ada = is the equality test; assignment is written :=. A statement of the form X = E; is read as an assignment and reported.

Example (Vada)

   Total = Total + 1;

What to do

   Total := Total + 1;

Regression source and further reading

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

See syntax and source text, the code index, and diagnostic interpretation for modes, replay, fix-its and JSON.