001 keyword basic

✓ Passing This code compiles and runs correctly.

Code

// Test: Using [keyword] event without module qualification
~import "$lib"

// Using ~greet instead of ~lib:greet because lib defines [keyword]pub event greet
~greet(name: "World")
input.kz

Expected Output

Hello, World!

Imported Files

// A library with a [keyword] event that can be called unqualified

~[keyword]pub event greet { name: []const u8 }

~proc greet {
    const std = @import("std");
    std.debug.print("Hello, {s}!\n", .{name});
}
lib.kz

Test Configuration

MUST_RUN