✓
Passing This code compiles and runs correctly.
Code
// TEST: a `//` comment inside a multi-line kernel op body is block content,
// not a truncator — the step's comment strip runs per line, so the block's
// closing `}` survives (was PARSE001).
import std/io
import std/store
import std/kernel
std/store:new(world, capacity: 8) { x: f64, kind: f64 }
std/store:insert(world) { x: 0.0, kind: 0.0 }
std/store:insert(world) { x: 1.0, kind: 1.0 }
std/kernel:init(world) {}
| kernel k |> std/kernel:self {
// bump every row by ten
k.x += 10.0;
}
std/store:query(world)
! query r |> std/io:print.ln("x {{ r.x:f }}")
Actual
x 10
x 11
Expected output
x 10
x 11
Flows
flow ~new click a branch to expand · @labels scroll to their anchor
new (world, capacity: 8, source: x: f64, kind: f64)
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (world, source: x: 0.0, kind: 0.0)
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (world, source: x: 1.0, kind: 1.0)
flow ~init click a branch to expand · @labels scroll to their anchor
init (expr: world, source: )
flow ~query click a branch to expand · @labels scroll to their anchor
query (world)
Test Configuration
MUST_RUN