149 effect optional resume unguarded fire

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

Code

input.k

Actual compiler output

error[KORU130]: effect 'ask' is optional and resumes a value — a consumer may omit the handler, so the fire must sit under a presence test: if(ask) | then |> ask(...): ... | else |> <your fallback>
  --> tests/regression/400_RUNTIME_FEATURES/400_149_effect_optional_resume_unguarded_fire/input.k:18:0

❌ Compiler coordination error: Validation failed (see errors above)
   (set KORU_BACKEND_TRACE=1 for the backend return trace)

Backend must reject with:

CONTAINS 'ask' is optional
CONTAINS if(ask)

Flows

subflow ~query click a branch to expand · @labels scroll to their anchor
ask (q)
flow ~query click a branch to expand · @labels scroll to their anchor
query (q: 41)

Test Configuration

MUST_ERROR