✓
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");
~tor greet {
first: string,
last: string,
age: u32
} -> string
~proc greet|zig {
std.debug.print("Hello, {s} {s} ({d})!\n", .{e.first, e.last, e.age});
return "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:18:1
|
18 | ~greet(
| ^