136 captured bare positional footgun

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

Code

input.k

Actual compiler output

error[KORU164]: captured: positional assignment is never allowed — name the target (`x: expr`); a bare entry must be a punnable name or path
  --> tests/regression/320_CONTROL_FLOW/320_136_captured_bare_positional_footgun/input.k:8:0

Compiler must reject:

Compilation must fail with a diagnostic.

Flows

flow ~capture click a branch to expand · @labels scroll to their anchor
capture (source: x: 0[i64], y: 0[i64])

Test Configuration

MUST_ERROR