231 parallel for second cell write refused

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

Code

input.k

Actual compiler output

error[KORU212]: [parallel]for: second write to `a.acc` under [parallel] — the join replays one combine per field; fold the writes into a single `captured { … }` expression or drop [parallel]
  --> tests/regression/400_RUNTIME_FEATURES/400_231_parallel_for_second_cell_write_refused/input.k:11:5

Error output must contain

second write

Flows

flow ~capture click a branch to expand · @labels scroll to their anchor
capture (source: acc: 0[i64])

Test Configuration

MUST_ERROR