136 reject scan no element write

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

Code

input.k

Actual compiler output

error[KORU123]: std/kernel:scan produced no element write — its output IS the mutated elements, so at least one statement must assign `k.<field>`; accumulator-only state has no exit

Error output must contain

std/kernel:scan produced no element write

Flows

flow ~shape click a branch to expand · @labels scroll to their anchor
shape (expr: Pt, source: mass: f64,)
flow ~init click a branch to expand · @labels scroll to their anchor
init (expr: Pt, source: { mass: 1.0 }, { mass: 2.0 },)

Test Configuration

MUST_ERROR