264 call in return field default refused

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

Code

input.kz

Actual compiler output

error[KORU104]: nested call in a return-field default — calls are not expressions; use tor chaining: bind the result first
  --> tests/regression/200_COMPILER_FEATURES/210_PARSER/210_264_call_in_return_field_default_refused/input.kz:11:0
    |
 11 | ~pub tor poll {} -> { v: i64 = helper(), w: i64 }
    | ^
  hint: rewrite as `tor(args): x |> ...` and use `x` here

Frontend must reject with:

CONTAINS error[KORU104]
CONTAINS return-field default
CONTAINS calls are not expressions
ERROR_AT 11

Flows

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

Test Configuration

MUST_ERROR