187 chain ends on step producing nothing

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

Code

input.k

Actual compiler output

error[KORU094]: 'run' declares `-> i64`, but its chain ends at 'note', which produces no value
  --> tests/regression/200_COMPILER_FEATURES/210_PARSER/210_187_chain_ends_on_step_producing_nothing/input.k:22:0
    |
 22 | run = seed(): a |> note(subject: a)
    | ^
  hint: a chain satisfies its flow's `-> i64` when its LAST step returns one. End on a step that produces a i64, or drop the `-> i64` from 'run'.

Must fail at frontend compile:

Parsing or type-checking must reject the program.

Error output must contain

KORU094

Flows

subflow ~run click a branch to expand · @labels scroll to their anchor
seed
flow ~run click a branch to expand · @labels scroll to their anchor
run

Test Configuration

MUST_ERROR