✓
Passing Passing: the compiler rejects this program as expected.
Code
// PINS: in a host-embedded file a `! name …` line is still a Koru
// continuation glyph — at top level it continues nothing, so it is the
// stray continuation KORU010 names (same wall as a top-level `|` arm).
const std = @import("std");
~tor start {}
~proc start|zig {}
! whatever b |> std/io:print.ln("x")
~start()
Actual compiler output
error[KORU010]: stray continuation line without Koru construct
--> tests/regression/200_COMPILER_FEATURES/210_PARSER/210_302_stray_effect_arm_line_refused_dot_kz/input.kz:9:1
|
9 | ! whatever b |> std/io:print.ln("x")
| ^
hint: blank lines end a chain — the construct at line 7 cannot be continued across one. Remove the blank line, or start a new flow here. (a `! name` line is an obligation arm — it attaches to the construct directly above it)Frontend must reject with:
CONTAINS error[KORU010]
CONTAINS stray continuation
ERROR_AT 9
NOT_CONTAINS output_emitted.zigFlows
flow ~start click a branch to expand · @labels scroll to their anchor
start
Test Configuration
MUST_ERROR