007 ctx template bare refusal

✓ Passing Passing: the compiler rejects this program as expected.

Code

input.k

Actual compiler output

error[KORU047]: event 'input:needs-scope' is invoked but has no implementation — without one the compiler would silently stub it to return zero-defaults. Implement it with a proc (`~proc needs-scope|zig { ... }`), a bare-return impl (`~needs-scope -> <value>`), a branch constructor (`~needs-scope => <branch> <value>`), or a subflow (`~needs-scope = <flow>`)
  --> tests/regression/600_STDLIB/696_CTX/696_007_ctx_template_bare_refusal/input.k:22:0

Must fail at runtime:

Program must error when executed.

Error output must contain

has no implementation

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (inner, source: a: 9[i64], b: 8[i64], c: 7[i64])
subflow ~ctxprobe click a branch to expand · @labels scroll to their anchor
print.ln (expr: "ctxprobe a={{ a:d }} b={{ b:d }} c={{ c:d }}")
subflow ~needs-scope click a branch to expand · @labels scroll to their anchor
ctxprobe
flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "seed")
flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "bare")

Test Configuration

MUST_ERROR