✓
Passing This code compiles and runs correctly.
Code
// Test 620: Multi-line Parameter Lists (NOT YET SUPPORTED)
// This test captures the current limitation where multi-line parameter
// lists are split into separate host_line nodes without proper comma handling
const std = @import("std");
~event greet {
first: []const u8,
last: []const u8,
age: u32
}
| greeting []const u8
~proc greet|zig {
std.debug.print("Hello, {s} {s} ({d})!\n", .{e.first, e.last, e.age});
return .{ .greeting = "Hi!" };
}
~greet(
first: "John",
last: "Doe",
age: 42
)
| greeting |> _
Must fail at frontend compile:
Parsing or type-checking must reject the program.
Expected compiler error
error[PARSE003]: unbalanced parentheses in invocation arguments
--> tests/regression/300_ADVANCED_FEATURES/310_COMPTIME/310_022_multiline_params/input.kz:19:1
|
19 | ~greet(
| ^