✓
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.
// ============================================================================
~tor greet { name: string } -> string
~proc greet|zig {
return "Hello!";
}
// INVALID: continuation on same line as invocation
~greet(name: "World") | done |> _
Must fail at frontend compile:
Parsing or type-checking must reject the program.
Expected compiler error
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:14:21
|
14 | ~greet(name: "World") | done |> _
| ^
Test Configuration
Expected Error:
Continuation '|' must start on a new line