✓
Passing This code compiles and runs correctly.
Code
// ============================================================================
// VERIFIED REGRESSION TEST - DO NOT MODIFY WITHOUT DISCUSSION
// ============================================================================
// Test 403: Unknown import aliases must produce clear errors
// Only std, $lib, and $root are valid aliases
~import unknown/module
// This should never compile
const std = @import("std");
pub fn main() void {
std.debug.print("This should fail at import resolution\n", .{});
}
Must fail at frontend compile:
Parsing or type-checking must reject the program.
Expected compiler error
error[PARSE003]: unknown import alias: 'unknown'
--> tests/regression/500_INTEGRATION_TESTING/540_VALIDATION/403_import_unknown_alias/input.kz:7:1
|
7 | ~import unknown/module
| ^
hint: define alias in koru.json paths, e.g. "paths": { "unknown": "./path" }