009 run discriminates define

✓ Passing This code compiles and runs correctly.

Code

input.k

Actual

--- bridge open
  A: DENIED greet (expected)
  B: defined greet (expected)
  C: greet -> {"branch":"","value":"hi"} (expected)
  D: vocabulary contains greet: echo(text: string)
greet(text: string)
  D: (expected greet(text: string) present)
--- done

Flows

flow ~register click a branch to expand · @labels scroll to their anchor
register (scope: "api", source: echo(1))
subflow ~turn-a click a branch to expand · @labels scroll to their anchor
run (br, source: "greet(text: \"hi\")")
subflow ~turn-b click a branch to expand · @labels scroll to their anchor
run (br, source: "tor greet { text: string }\ngreet = echo(text)")
subflow ~turn-c click a branch to expand · @labels scroll to their anchor
run (br, source: "greet(text: \"hi\")")
subflow ~turn-d click a branch to expand · @labels scroll to their anchor
vocabulary (br)
flow ~create click a branch to expand · @labels scroll to their anchor
create (id: "rtdisc", scope: "api")

Test Configuration

MUST_RUN