DEVELOPMENT EDITION · 769442725406
Diagnostics Reference
On this page

B0104: name after end does not match

Catalog status: active. Default severity: error. Stable name: end-name-mismatch. Family: Syntax and source text.

When a unit, loop or block repeats its name after end, the name must be the same as the opening one (RM 6.3, 7.2, 5.5). A mismatch usually means a typo or an end that closes a different construct than intended. A loop or block without a label cannot have a name after its end.

Example (Vada)

procedure Main is
begin
   null;
end Mian;

What to do

Write the opening name after end (the fix-it does this), or check that the end closes the construct you meant.

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.