✓
Passing Passing: the compiler rejects this program as expected.
Code
// PINS: a blank line ends a flow chain — the `|>` steps after it continue
// nothing and refuse as ONE orphan run carrying the run's span and the
// severing rule in its hint, not one error per orphaned line. Session
// telemetry measured stray-continuation refusals arriving in bursts (a dead
// head or a blank orphaning every step below it), so the diagnostic names
// the run and says what separated it from its head.
import std/io
std/io:print.ln("a")
|> std/io:print.ln("b")
|> std/io:print.ln("c")
Actual compiler output
error[KORU010]: 2 stray continuation lines without a Koru construct (lines 11-12)
--> tests/regression/200_COMPILER_FEATURES/210_PARSER/210_307_blank_line_severs_chain_orphan_run/input.k:11:5
|
11 | |> std/io:print.ln("b")
| ^
hint: blank lines end a chain — the construct at line 9 cannot be continued across one. Remove the blank line, or start a new flow here. (a `|>` line chains onto the step directly above it)Frontend must reject with:
CONTAINS error[KORU010]
CONTAINS 2 stray continuation lines without a Koru construct (lines 11-12)
CONTAINS blank lines end a chain
ERROR_AT 11
NOT_CONTAINS output_emitted.zigFlows
flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "a")
Test Configuration
MUST_ERROR