123 reject chain glyph introduces value

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

Code

input.kz

Actual compiler output

error[KORU103]: `|>` chains a step; it cannot introduce the value `42` — produce a value with `->` (e.g. `-> 42`)
  --> tests/regression/400_RUNTIME_FEATURES/400_123_reject_chain_glyph_introduces_value/input.kz:18:0
    |
 18 | ! ask _ |> 42
    | ^

Frontend must reject with:

CONTAINS KORU103
CONTAINS chains a step

Test Configuration

MUST_ERROR