043 transform optional noop arm banned

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

Code

input.kz

Actual compiler output

error[KORU037]: no-op `_` body on optional effect branch 'tick' — subscribing to an optional effect only to do nothing is pure noise
  --> tests/regression/200_COMPILER_FEATURES/220_FLOW_CHECKER/220_043_transform_optional_noop_arm_banned/input.kz:25:0
    |
 25 | ! tick _ |> _
    | ^
  hint: omit the handler entirely. A no-op is also a hazard: if 'tick' is later promoted to REQUIRED, this handler would silently swallow the event instead of surfacing the must-handle error. To act, replace `_` with a real step; to intentionally handle-and-ignore, the branch must be REQUIRED (drop the `?`), not optional.

Must fail at frontend compile:

Parsing or type-checking must reject the program.

Error output must contain

KORU037

Flows

flow ~run click a branch to expand · @labels scroll to their anchor
run

Test Configuration

MUST_ERROR