✓
Passing This code compiles and runs correctly.
Code
// Test 150: Basic single-file import
//
// Tests importing a sibling .kz file and verifying the result actually runs.
~import std/io
~import app/helper
~app/helper:greet(name: "World")
| greeted g |> std/io:print.ln("{{ g:s }}")
Actual
Hello!
Must succeed:
Compile and run without errors.
Expected output
Hello!
Imported Files
// Helper module - demonstrates single file import
const std = @import("std");
~pub event greet { name: []const u8 }
| greeted []const u8
~proc greet|zig {
return .{ .greeted = "Hello!" };
}
Test Configuration
MUST_RUN