DEVELOPMENT EDITION · 769442725406
Diagnostics Reference
On this page
B0111: unexpected end of file
Catalog status: active. Default severity: error. Stable name: unexpected-end-of-file. Family: Syntax and source text.
The file ends in the middle of a construct: usually an end is missing, or a string or comment swallowed the rest of a line.
Example (Vada)
procedure Main is
begin
null;Example (Varc)
fn main() {
let x: Integer = 1;
What to do (Vada)
Add what the message says is expected (here end Main;).
What to do (Varc)
Add what the message says is expected (here the closing }).
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.