Skip to content
ZOLO / TE226 Type · error

duplicate active loop label

Compiler diagnostic TE226: duplicate active loop label.

Why this fires

Two nested, simultaneously active loops declare the same label. A labelled exit would be ambiguous to readers even though the innermost declaration could be selected mechanically.

:scan loop {
    :scan while ready() { // error[TE226]
        break
    }
}

Fix it

Rename one label so every active target is unique.

:scan loop {
    :retry while ready() {
        break :scan
    }
}

See also

  • TE225 — a referenced label has no active declaration.

Global index

Find your way through Zolo

Try an idea

Start here

9 results

9 results

en