181 thread has no home in next stage

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

Code

input.k

Actual compiler output

error[KORU092]: nothing in 'shout' accepts a i64 — its parameter 'text' is a string
  --> tests/regression/200_COMPILER_FEATURES/210_PARSER/210_181_thread_has_no_home_in_next_stage/input.k:21:0
    |
 21 | seed() |> shout(): r |> std/io:print.ln("shouted = {{ r:s }}")
    | ^
  hint: a `|>` step takes the previous stage's `-> T` by TYPE into an unfilled parameter. Give 'shout' a i64 parameter, or write 'text' explicitly and end the thread there.

Must fail at frontend compile:

Parsing or type-checking must reject the program.

Error output must contain

KORU092

Flows

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

Test Configuration

MUST_ERROR