✓
Passing This code compiles and runs correctly.
Code
// TEST: MUST_FAIL — a bare (non-`~`) module-qualified line in a `.kz` file is a
// HOST LINE, not a Koru construct. It must NEVER be caught by the frontend.
//
// In `.kz`, Koru flow statements require the `~` prefix (a `.k` file auto-
// synthesizes it). A bare `std/io:print.ln("hi")` is therefore passed through
// verbatim as host (Zig) source. It happens not to be valid Zig, so the build
// fails at the HOST compile stage (BACKEND_COMPILE_ERROR) — the correct place.
// The frontend compiles cleanly; this is not a parser rejection.
~import std/io
std/io:print.ln("hi")
Must fail at backend compile:
Code generation must reject the program.
Error Verification
Actual Compiler Output
🎯 Compiler coordination: Passes: 14 (flow-based: frontend, analysis, emission)
Error: output_emitted.zig:18:8: error: expected ',' after field
std/io:print.ln("hi")
^Test Configuration
MUST_FAIL