047 if subflow enclosing branches

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

Code

input.kz

Actual compiler output

error[KORU040]: unknown tor 'input:~if'
  --> tests/regression/300_ADVANCED_FEATURES/320_STDLIB/320_047_if_subflow_enclosing_branches/input.kz:56:0

❌ Compiler coordination error: Unknown tor referenced
   (set KORU_BACKEND_TRACE=1 for the backend return trace)

Must fail at runtime:

Program must error when executed.

Error output must contain

error[KORU040]: unknown tor 'input:~if'

Flows

subflow ~decide click a branch to expand · @labels scroll to their anchor
~if (ctx.flag and ctx.n > 0)
subflow ~run click a branch to expand · @labels scroll to their anchor
decide (ctx)
flow ~run click a branch to expand · @labels scroll to their anchor
run (ctx: c)

Test Configuration

MUST_ERROR