001 struct basic

✓ Passing This code compiles and runs correctly.

Code

input.kz

Actual

Player: Alice, Health: 100

Expected output

Player: Alice, Health: 100

Flows

flow ~struct click a branch to expand · @labels scroll to their anchor
struct (expr: Player, source: name: []const u8, health: i32,)
flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "Player: {{ player.name:s }}, Health: {{ player.health:d }}")

Test Configuration

MUST_RUN