✓
Passing This code compiles and runs correctly.
Code
// Phase 2: a directory module containing both `.kz` and `.kjs` siblings.
// Directory enumeration should pick up files of every Koru extension and
// register both as submodules under the directory's namespace.
const std = @import("std");
~import std/io
~import app/lib
~app/lib/alpha:greet-alpha()
| spoken a |> std/io:print.ln("{{ a:s }}")
~app/lib/beta:greet-beta()
| spoken b |> std/io:print.ln("{{ b:s }}")
Actual
alpha (kz)
beta (kjs)
Must succeed:
Compile and run without errors.
Expected output
alpha (kz)
beta (kjs)
Flows
flow ~greet-alpha click a branch to expand · @labels scroll to their anchor
greet-alpha
flow ~greet-beta click a branch to expand · @labels scroll to their anchor
greet-beta
Imported Files
// Sibling 1: standard .kz file.
const std = @import("std");
~pub event greet-alpha {}
| spoken []const u8
~proc greet-alpha|zig {
return .{ .spoken = "alpha (kz)" };
}
Test Configuration
MUST_RUN