006 proto ref field

✓ Passing This code compiles and runs correctly.

Code

input.k

Actual

hp 42

Expected output

hp 42

Flows

flow ~std/proto click a branch to expand · @labels scroll to their anchor
std/proto (Dog, source: hp: i64)
flow ~std/proto click a branch to expand · @labels scroll to their anchor
std/proto (Owner, source: name: string dog: ref(Dog))
flow ~new click a branch to expand · @labels scroll to their anchor
new (dogs, capacity: 8, source: Dog)
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (dogs, source: hp: 7)
flow ~query click a branch to expand · @labels scroll to their anchor
query (dogs)

Test Configuration

MUST_RUN