✓
Passing This code compiles and runs correctly.
Code
// Test: Keyword event with Expression parameter
// Verifies that [keyword] events properly capture Expression parameters
import lib
// Using ~check without module qualification
// The expression "2 + 2" should be captured as expr
check(2 + 2)
// Test with a more complex expression
check(value > 10)
Flows
flow ~check click a branch to expand · @labels scroll to their anchor
check (2 + 2)
flow ~check click a branch to expand · @labels scroll to their anchor
check (value > 10)
Imported Files
~[comptime]
// Library defining a keyword event with Expression parameter
// This tests that keywords properly capture expressions
~[keyword|comptime]pub tor check { expr: Expression }
~proc check|zig {
const std = @import("std");
std.debug.print("Expression: {s}\n", .{expr});
}