137 effect unit payload spelled by omission

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

Code

input.kz

Actual compiler output

error[PARSE003]: '()' is not a payload type - an empty payload is spelled by omission (write `! ask`; resume arms may follow: `! ask | ok i32 | fail`)
  --> tests/regression/200_COMPILER_FEATURES/210_PARSER/210_137_effect_unit_payload_spelled_by_omission/input.kz:8:1
    |
  8 | ! ask () | halved i32 | timeout
    | ^

Frontend must reject with:

CONTAINS spelled by omission

Test Configuration

MUST_ERROR