003 struct pub keyword

✓ Passing This code compiles and runs correctly.

Code

input.kz

Actual

x=1, y=2, v=42

Expected output

x=1, y=2, v=42

Flows

flow ~struct click a branch to expand · @labels scroll to their anchor
struct (Internal, source: value: i32,)
flow ~struct click a branch to expand · @labels scroll to their anchor
struct (Position, source: x: f32, y: f32,)
flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "x={{ p.x:any }}, y={{ p.y:any }}, v={{ i.value:d }}")

Test Configuration

MUST_RUN