✓
Passing This code compiles and runs correctly.
Code
// ============================================================================
// Test 210_043: Inline continuation rejected
// Continuations (|) must start on a new line with proper indentation.
// Single-line flows like `~event() | branch |> _` are NOT valid Koru.
// ============================================================================
~event greet { name: []const u8 }
| done []const u8
~proc greet {
return .{ .done = "Hello!" };
}
// INVALID: continuation on same line as invocation
~greet(name: "World") | done |> _
Expected
error[PARSE001]: Branch continuation '|' must start on a new line with proper indentation
--> tests/regression/200_COMPILER_FEATURES/210_PARSER/210_043_inline_continuation_rejected/input.kz:15:21
|
15 | ~greet(name: "World") | done |> _
| ^
Test Configuration
Expected Behavior:
FRONTEND_COMPILE_ERRORExpected Error:
Continuation '|' must start on a new line