055 reject nested kernel init

✓ Passing This code compiles and runs correctly.

Code

input.k

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 }, { mass: 2.0 },)

Test Configuration

Expected Error:

std.kernel:init inside a kernel scope declares a second kernel view