✓
Passing This code compiles and runs correctly.
Code
// Phase 2: a directory's source file lives at `index.kjs` instead of
// `index.kz`. The directory-import path should probe all Koru extensions
// for the index file, not just `.kz`.
import std/io
import app/mylib
app/mylib:greet(name: "kjs index"): g |> std/io:print.ln("{{ g:s }}")
Supporting Files
// The directory's source file uses `.kjs`. Phase 2 must probe each Koru
// extension at the index-load site so this is discovered.
const std = @import("std");
~pub tor greet { name: string } -> string
~proc greet|zig {
return "hello from index.kjs";
}
Actual
hello from index.kjs
Must succeed:
Compile and run without errors.
Expected output
hello from index.kjs
Flows
flow ~greet click a branch to expand · @labels scroll to their anchor
greet (name: "kjs index")
Test Configuration
MUST_RUN