ClosedBit error docs

CB_ERR_MISSING_SEMICOLON

Line termination ambiguity. Semicolons are optional at normal line ends, but still required when more than one statement appears on one line or inside C-style for headers.

Why it happens

Semicolons are optional at normal line ends, but still required when more than one statement appears on one line or inside C-style for headers.

How to fix it

Put each statement on its own line, or add semicolons in compact one-line forms.

Copy-paste fix pattern
fn main() {
    var a = 1
    var b = 2
    save a + b
}
If the IDE reports a line number, fix that line first, then scan the previous line for an unclosed string, bracket, or block.