017 scope label loop

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

Code

input.kz

Supporting Files

fs.kz

Actual compiler output

error[KORU030]: Label jump '@loop' drops cleanup obligation for 'f' - pass it as an argument or discharge it before jumping
  --> tests/regression/300_ADVANCED_FEATURES/330_PHANTOM_TYPES/330_017_scope_label_loop/input.kz:19:5

Must contain:

error[KORU030]

Flows

subflow ~spin click a branch to expand · @labels scroll to their anchor
#loop iterate (count: 0)
flow ~spin click a branch to expand · @labels scroll to their anchor
spin

Test Configuration

MUST_ERROR