117 reduce undeclared accumulator

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

Code

input.k

Actual compiler output

error[KORU123]: std/kernel:reduce body names an accumulator `weird` that is not declared — add `<name>[<type>]` to the block header (e.g. `weird[f64]`)

Error output must contain

std/kernel:reduce body names an accumulator `weird` that is not declared

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