✓
Passing This code compiles and runs correctly.
Code
// ============================================================================
// Test: --ast-json flag with stdlib imports
// Tests that koruc --ast-json can successfully parse files with stdlib imports
// ============================================================================
~import "$std/io"
const std = @import("std");
// Simple event
~event check { value: i32 }
| ok { result: i32 }
~proc check {
return .{ .ok = .{ .result = value } };
}
// Simple flow
~check(value: 42)
| ok _ |> _