008 runtime define

✓ Passing This code compiles and runs correctly.

Code

input.k

Actual

--- bridge open
  pre-define: DENIED shout (expected)
  defined shout
  shout -> {"branch":"","value":"hi"}
--- done

Expected output

--- bridge open
  pre-define: DENIED shout (expected)
  defined shout
  shout -> {"branch":"","value":"hi"}
--- done

Flows

flow ~register click a branch to expand · @labels scroll to their anchor
register (scope: "api", source: echo(1))
subflow ~check-pre click a branch to expand · @labels scroll to their anchor
run (br, source: "shout(text: \"hi\")")
subflow ~do-define click a branch to expand · @labels scroll to their anchor
define (br, source: "tor shout { text: string }\nshout = echo(text)")
subflow ~check-post click a branch to expand · @labels scroll to their anchor
run (br, source: "shout(text: \"hi\")")
flow ~create click a branch to expand · @labels scroll to their anchor
create (id: "rtdefine", scope: "api")

Test Configuration

MUST_RUN