060 bound value deep field paths

✓ Passing This code compiles and runs correctly.

Code

input.k

Actual

echo: Zoë
t1 result
echo: Zoë
t2 result
t3 refused '{{ u.user.bogus.x }}' — 'u.user' carries no field 'bogus' (it has: first_name, last_name, greeting)
t4 refused 'u.id' is a scalar, not a record — 'x' can't be read from it
echo: u7|{"first_name":"Zo\u00eb","last_name":"Li","greeting":"line1\nline2"}
t5 result
echo: Zoë|line1
line2
t6 result

Expected output

echo: Zoë
t1 result
echo: Zoë
t2 result
t3 refused '{{ u.user.bogus.x }}' — 'u.user' carries no field 'bogus' (it has: first_name, last_name, greeting)
t4 refused 'u.id' is a scalar, not a record — 'x' can't be read from it
echo: u7|{"first_name":"Zo\u00eb","last_name":"Li","greeting":"line1\nline2"}
t5 result
echo: Zoë|line1
line2
t6 result

Flows

flow ~register click a branch to expand · @labels scroll to their anchor
register (scope: "binds", source: probe(1) echo(1))
subflow ~turn1 click a branch to expand · @labels scroll to their anchor
run (br, source: "probe(path: \"x\") | found u |> echo(text: \"{{ u.user.first_name }}\")")
subflow ~turn2 click a branch to expand · @labels scroll to their anchor
run (br, source: "probe(path: \"x\") | found u |> echo(text: u.user.first_name)")
subflow ~turn3 click a branch to expand · @labels scroll to their anchor
run (br, source: "probe(path: \"x\") | found u |> echo(text: \"{{ u.user.bogus.x }}\")")
subflow ~turn4 click a branch to expand · @labels scroll to their anchor
run (br, source: "probe(path: \"x\") | found u |> echo(text: \"{{ u.id.x }}\")")
subflow ~turn5 click a branch to expand · @labels scroll to their anchor
run (br, source: "probe(path: \"x\") | found u |> echo(text: \"{{ u.id }}|{{ u.user }}\")")
subflow ~turn6 click a branch to expand · @labels scroll to their anchor
run (br, source: "probe(path: \"x\") | found u |> echo(text: \"{{ u.user.first_name }}|{{ u.user.greeting }}\")")
flow ~create click a branch to expand · @labels scroll to their anchor
create (id: "b1", scope: "binds")

Test Configuration

MUST_RUN