022 singleline shape bug

○ Planned This feature is planned but not yet implemented.

Parser bug: single-line source blocks don't capture source_value

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")
input.kz

Expected Output

done