label fold all back edges refused

✓ Passing This code compiles and runs correctly.

Code

input.k

Must fail at runtime:

Program must error when executed.

Error output must contain

error[KORU206]: fold '#L' can never exit

Flows

subflow ~spin click a branch to expand · @labels scroll to their anchor
if (n > 0)
subflow ~run click a branch to expand · @labels scroll to their anchor
#L spin (n: 3)
flow ~run click a branch to expand · @labels scroll to their anchor
run