259 label flow caret on head

✓ Passing Passing: the compiler rejects this program as expected.

Code

input.k

Actual compiler output

error[KORU211]: label '#lbl' anchors 'std.control:capture' — a keyword/comptime/transform call is consumed at compile time, so there is no runtime invocation for '@lbl' to re-dispatch to
  --> tests/regression/200_COMPILER_FEATURES/210_PARSER/210_259_label_flow_caret_on_head/input.k:12:1
    |
 12 | #lbl capture { p: 0[i64], p: 0[i64] }
    | ^
  hint: a label may only anchor a call that exists at runtime — anchor '#lbl' on a runtime tor invocation instead

Frontend must reject with:

CONTAINS error[KORU211]
ERROR_AT 12

Flows

flow ~capture click a branch to expand · @labels scroll to their anchor
#lbl capture (source: p: 0[i64], p: 0[i64])
flow ~tick click a branch to expand · @labels scroll to their anchor
tick (n: 1)

Test Configuration

MUST_ERROR