✓
Passing This code compiles and runs correctly.
Code
// Pins: two SEQUENTIAL [parallel]fors are legal — the nesting wall covers
// only a [parallel] scope inside a [parallel]for's body, not sibling
// scopes in one chain.
import std/io
capture { acc: 0[i64] }
! as a |> [parallel]for(1..101)
! each i |> captured { acc: a.acc + @as(i64, @intCast(i)) }
| captured r |> [parallel]for(1..101)
! each i |> captured { acc: r.acc + 1 }
| captured s |> std/io:print.ln("{{ s.acc:d }}")
Actual
5050
Expected output
5050
Flows
flow ~capture click a branch to expand · @labels scroll to their anchor
capture (source: acc: 0[i64])
Test Configuration
MUST_RUN