204 inline flow in proc is refused

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

Code

input.kz

Actual compiler output

error[KORU003]: inline flows are not supported inside `~proc` bodies: ~greet(name)
  --> tests/regression/200_COMPILER_FEATURES/210_PARSER/210_204_inline_flow_in_proc_is_refused/input.kz:37:5
    |
 37 |     ~greet(name)
    |     ^
  hint: lift this into a top-level subflow (e.g. `~my_event = call(args) | branch x |> done {}`) or invoke the event from outside the proc body

Frontend must reject with:

CONTAINS error[KORU003]
CONTAINS inline flows are not supported inside
CONTAINS lift this into a top-level subflow

Flows

flow ~greet click a branch to expand · @labels scroll to their anchor
greet (name)

Test Configuration

MUST_ERROR