✓
Passing This code compiles and runs correctly.
Code
// TEST: Single-line shape block bug
// This fails because single-line source blocks don't capture source_value
import std/kernel
import std/io
// BUG: This single-line shape doesn't work
std/kernel:shape(Body) { mass: f64 }
std/kernel:init(Body) {
{ mass: 1.0 },
}
std/io:print.ln("done")
Actual
done
Expected output
done
Flows
flow ~shape click a branch to expand · @labels scroll to their anchor
shape (expr: Body, source: mass: f64)
flow ~init click a branch to expand · @labels scroll to their anchor
init (expr: Body, source: { mass: 1.0 },)
flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "done")
Test Configuration
MUST_RUN