080 comment inside chain

✓ Passing This code compiles and runs correctly.

Code

// Test: A standalone // comment between a flow head and its branch handlers
// is rejected. Comments are not allowed to split a chain. Move the prose
// above the whole flow, or trail it after a complete line.
//
// Defends: parser rule that the chain is the documentation — comments
// inside a chain are an admission of defeat and should be banned.

~event work {}
| ok i32
| err []const u8

~proc work|zig { return .{ .ok = 1 }; }

~work()
// this comment splits the chain from its branch handlers
| ok x |> _
| err _ |> _
input.kz

Must fail at frontend compile:

Parsing or type-checking must reject the program.

Test Configuration

Expected Error:

error[KORU010]: comment line inside a flow chain