020 fmt blk unbound result refuses

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

Code

input.k

Actual compiler output

error[KORU180]: std/fmt:fmt.blk: unbound result — bind the formatted string with `: name` (`std/fmt:fmt.blk { ... } : name`); the `| formatted` branch spelling was removed, so an unbound result has no consumer
  --> tests/regression/600_STDLIB/620_FMT/620_020_fmt_blk_unbound_result_refuses/input.k:18:1

Must fail at runtime with:

CONTAINS KORU180
CONTAINS unbound

Flows

flow ~const click a branch to expand · @labels scroll to their anchor
const (source: name: "World")
flow ~fmt.blk click a branch to expand · @labels scroll to their anchor
fmt.blk (source: Hello, {{ name:s }}!)

Test Configuration

MUST_ERROR