✓
Passing This code compiles and runs correctly.
Code
// PIN: a bare `lib/door(...)` module call is the default-door — it must
// rewrite to `lib.door:default(...)` at ANY position in a flow, including
// inside a continuation. The import-pipeline rewrite once inspected only each
// flow's ROOT invocation, so a bare module call nested under a bare-return
// chain stayed a literal `lib/door` path and failed KORU040 "unknown tor".
~import lib/door
~import std/io
~lib/door(name: "root"): v1
|> lib/door(name: "nested"): v2
|> std/io:print.ln("{{ v1:s }} then {{ v2:s }}")
Supporting Files
// A module whose `default` tor is the door a bare `lib/door(...)` call opens.
~pub tor default { name: string } -> string
~proc default|zig {
return name;
}
Actual
root then nested
Expected output
root then nested
Flows
flow ~lib/door click a branch to expand · @labels scroll to their anchor
lib/door (name: "root")
Test Configuration
MUST_RUN
koru.json:
{
"paths": {
"std": "../../../../../koru_std",
"lib": "./test_lib"
}
}