✓
Passing This code compiles and runs correctly.
Code
// Test: Registry Scope - Dotted Scope Names
//
// Verifies scope lookup works with names like "api.v1" and that
// numeric arguments are parsed into typed inputs.
~import std/runtime
~import std/io
const std = @import("std");
~pub event greet { id: u64 }
~proc greet|zig {
}
~std/runtime:register(scope: "api.v1") {
greet(1)
}
const SOURCE = "~greet(id: 7)";
~std/runtime:parse.source(source: SOURCE, file_name: "dotted.kz", allocator: std.heap.page_allocator)
| parsed p |> std/runtime:eval(ast: p, scope: "api.v1")
| result _ |> std/io:print.ln("OK")
| event-denied e |> std/io:print.ln("DENIED: {{e:s}}")
| exhausted _ |> std/io:print.ln("EXHAUSTED")
| validation-error _ |> std/io:print.ln("VALIDATION ERROR")
| dispatch-error _ |> std/io:print.ln("DISPATCH ERROR")
| scope-not-found _ |> std/io:print.ln("SCOPE NOT FOUND")
| parse-error e |> std/io:print.ln("PARSE ERROR: {{e:s}}")
Actual
[EVAL] Starting execution of pre-parsed flow
[EVAL] Validation passed
[EVAL] Execution complete, branch:
OK
Test Configuration
MUST_RUN