186 chain ends on wrong return type

✓ 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 'label', which produces a string
  --> tests/regression/200_COMPILER_FEATURES/210_PARSER/210_186_chain_ends_on_wrong_return_type/input.k:24:0
    |
 24 | run = seed(): a |> label(subject: a)
    | ^
  hint: the last step's return type IS the flow's return — nothing converts between them. End the chain on a step returning i64.

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