233 parallel for nested parallel refused

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

Code

input.k

Actual compiler output

error[KORU212]: [parallel]for: a [parallel] scope cannot nest inside a [parallel] body — the worker fn emits no second fork; hoist the inner [parallel] out of the loop or drop the annotation
  --> tests/regression/400_RUNTIME_FEATURES/400_233_parallel_for_nested_parallel_refused/input.k:10:5

Error output must contain

cannot nest inside a [parallel]

Flows

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

Test Configuration

MUST_ERROR