140 effect record fire requires named fields

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

Code

input.k

Actual compiler output

error[KORU030]: effect 'token' carries a record payload — fire it with named fields: token(kind: ..., val: ...)
  --> tests/regression/400_RUNTIME_FEATURES/400_140_effect_record_fire_requires_named_fields/input.k:13:0

error[KORU030]: effect 'token' carries a record payload — fire it with named fields: token(kind: ..., val: ...)
  --> tests/regression/400_RUNTIME_FEATURES/400_140_effect_record_fire_requires_named_fields/input.k:13:0

error[KORU022]: effect 'token' payload field 'kind' missing at the firing site (token(kind: ..., val: ...))
  --> tests/regression/400_RUNTIME_FEATURES/400_140_effect_record_fire_requires_named_fields/input.k:13:0

error[KORU022]: effect 'token' payload field 'val' missing at the firing site (token(kind: ..., val: ...))
  --> tests/regression/400_RUNTIME_FEATURES/400_140_effect_record_fire_requires_named_fields/input.k:13:0

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

Backend must reject with:

CONTAINS error[KORU030]
CONTAINS fire it with named fields

Flows

subflow ~scan click a branch to expand · @labels scroll to their anchor
token (1, n)
flow ~scan click a branch to expand · @labels scroll to their anchor
scan (n: 41)

Test Configuration

MUST_ERROR