047 bare name is a reference

✓ Passing This code compiles and runs correctly.

Code

input.k

Actual

RESULT bound=r1
sink:[{"flight_number": "H1001", "date": "2024-05-01"}]
RESULT bound=r2
sink:payload-7
RESULT bound=r3
calc:7
RESULT bound=r4
calc:8
RESULT bound=r5
REFUSED unbound 'ghost' on 'calc' — bind it with an arm (`| <branch> ghost |>`) or quote it for a literal
REFUSED unbound 'ghost' on 'sink' — bind it with an arm (`| <branch> ghost |>`) or quote it for a literal
sink:hello world
RESULT bound=r6

Expected output

RESULT bound=r1
sink:[{"flight_number": "H1001", "date": "2024-05-01"}]
RESULT bound=r2
sink:payload-7
RESULT bound=r3
calc:7
RESULT bound=r4
calc:8
RESULT bound=r5
REFUSED unbound 'ghost' on 'calc' — bind it with an arm (`| <branch> ghost |>`) or quote it for a literal
REFUSED unbound 'ghost' on 'sink' — bind it with an arm (`| <branch> ghost |>`) or quote it for a literal
sink:hello world
RESULT bound=r6

Flows

flow ~register click a branch to expand · @labels scroll to their anchor
register (scope: "api", source: produce(1) sink(1) calc(1))
subflow ~turn click a branch to expand · @labels scroll to their anchor
run (br, source: src)
flow ~create click a branch to expand · @labels scroll to their anchor
create (id: "cap", scope: "api")

Test Configuration

MUST_RUN