150 reject single field effect resume record

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

Code

input.k

Actual compiler output

error[PARSE003]: single field in record resume `{ a: i64 }` — collapse to the scalar `-> <type>`; a record resume is for two or more fields
  --> tests/regression/200_COMPILER_FEATURES/210_PARSER/210_150_reject_single_field_effect_resume_record/input.k:9:1
    |
  9 | ! ask -> { a: i64 }
    | ^

Must fail at frontend compile:

Parsing or type-checking must reject the program.

Error output must contain

single field

Test Configuration

MUST_ERROR