✓
Passing This code compiles and runs correctly.
Code
// Test 150: Basic single-file import
//
// Tests importing a sibling .kz file
// File imports use simple namespace: ~module:event()
const std = @import("std");
// Import sibling file helper.kz
// Makes events available as ~app.helper:event()
~import "$app/helper"
// Use event from helper module (now fully qualified with src namespace)
~app.helper:greet(name: "World")
| greeted _ |> _
Imported Files
// Helper module - demonstrates single file import
const std = @import("std");
~pub event greet { name: []const u8 }
| greeted { message: []const u8 }
~proc greet {
return .{ .greeted = .{ .message = "Hello!" } };
}
Test Configuration
Expected Behavior:
SUCCESS