✓
Passing This code compiles and runs correctly.
Code
// TEST: Array literal must target a slice type
//
// Koru array literal syntax ([a, b, c]) is only valid when the target
// parameter is a slice (e.g. []const i32). Using it for a non-slice
// parameter must fail.
~tor take { numbers: i32 }
~proc take|zig {
return .{ .done = {} };
}
~take(numbers: [1, 2, 3])
Must contain:
ArrayLiteralInvalidTargetFlows
flow ~take click a branch to expand · @labels scroll to their anchor
take (numbers: [1, 2, 3])