169 supervised arm destructure refuses

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

Code

input.k

Actual compiler output

error[KORU161]: std/supervisor:supervised: '| boom {…}' destructures nothing the fold reads — bind the failure payload by name ('| boom f |>')
  --> tests/regression/320_CONTROL_FLOW/320_169_supervised_arm_destructure_refuses/input.k:24:0

Compiler must reject:

Compilation must fail with a diagnostic.

Flows

subflow ~worker click a branch to expand · @labels scroll to their anchor
print.ln (expr: "try {{ n:d }}")
subflow ~sup click a branch to expand · @labels scroll to their anchor
worker (n)
flow ~sup click a branch to expand · @labels scroll to their anchor
sup (n: -10)

Test Configuration

MUST_ERROR