021 fmt ln unbound result refuses

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

Code

input.k

Actual compiler output

error[KORU180]: std/fmt:ln: unbound result — bind the line with `: name` (`std/fmt:ln("...") : name`); the `| line` branch spelling was removed, so an unbound result has no consumer
  --> tests/regression/600_STDLIB/620_FMT/620_021_fmt_ln_unbound_result_refuses/input.k:11:1

Must fail at runtime with:

CONTAINS KORU180
CONTAINS unbound

Flows

flow ~ln click a branch to expand · @labels scroll to their anchor
ln ("the answer is 42")

Test Configuration

MUST_ERROR