✗
Failing This test is currently failing.
Failed: no-error-pin
Failure Output
❌ Compiler coordination error: Unknown event referenced
error: CompilerCoordinationFailed
/Users/larsde/src/koru/tests/regression/500_INTEGRATION_TESTING/510_NEGATIVE_TESTS/510_011_invalid_module_qualifier/backend.zig:94:13: 0x1047cf18f in emit (backend)
return error.CompilerCoordinationFailed;
^
/Users/larsde/src/koru/tests/regression/500_INTEGRATION_TESTING/510_NEGATIVE_TESTS/510_011_invalid_module_qualifier/backend.zig:190:28: 0x1047cfe7b in main (backend)
const generated_code = try RuntimeEmitter.emit(compile_allocator, final_ast);
^ Code
// Test 618b: Invalid Module Qualifier (MUST FAIL)
// Validates that short-form module qualifiers like "io:println" are rejected
// Koru does NOT support import aliases - must always use full path
~import std/io
~event test {}
~proc test|zig {
}
// This should FAIL - "io" is not a valid module qualifier
// Correct form is: std/io:println
~test() |> io:print.ln("WRONG - should be std/io:println")
Error Verification
Expected Error Pattern
VALIDATION TEST: Invalid Module Qualifier
This test MUST FAIL to verify that Koru correctly rejects invalid module qualifiers.
Expected error:
error[PARSE001]: Event 'io:println' not found in registry
Koru does NOT support import aliases. You must ALWAYS use the full module path:
- ✅ Correct: ~import "$std/io" then use std.io:println
- ❌ Wrong: ~import "$std/io" then use io:println
This test uses the incorrect short form "io:println" and should fail during parsing.
If this test PASSES, our module qualifier validation is BROKEN.Actual Compiler Output
❌ Compiler coordination error: Unknown event referenced
error: CompilerCoordinationFailed
/Users/larsde/src/koru/tests/regression/500_INTEGRATION_TESTING/510_NEGATIVE_TESTS/510_011_invalid_module_qualifier/backend.zig:94:13: 0x1047cf18f in emit (backend)
return error.CompilerCoordinationFailed;
^
/Users/larsde/src/koru/tests/regression/500_INTEGRATION_TESTING/510_NEGATIVE_TESTS/510_011_invalid_module_qualifier/backend.zig:190:28: 0x1047cfe7b in main (backend)
const generated_code = try RuntimeEmitter.emit(compile_allocator, final_ast);
^Test Configuration
MUST_RUN MUST_FAIL