001 catch answers unhandled

✓ Passing This code compiles and runs correctly.

Code

input.k

Actual

caught -1
ok 3

Expected output

caught -1
ok 3

Flows

subflow ~risky click a branch to expand · @labels scroll to their anchor
if (code < 0)
flow ~catch click a branch to expand · @labels scroll to their anchor
catch (expr: risky)
flow ~risky click a branch to expand · @labels scroll to their anchor
risky (code: -1)
flow ~risky click a branch to expand · @labels scroll to their anchor
risky (code: 3)

Test Configuration

MUST_RUN