003 catch matching nothing refuses

✓ Passing This code compiles and runs correctly.

Code

input.k

Error output must contain

error[KORU179]: std/panic:catch(safe) answered nothing - no unhandled ?! site matched; the pattern is stale or the problem is already solved

Flows

subflow ~safe click a branch to expand · @labels scroll to their anchor
n * 2
flow ~catch click a branch to expand · @labels scroll to their anchor
catch (expr: safe)
flow ~safe click a branch to expand · @labels scroll to their anchor
safe (n: 2)