006 branch constructor bug

✗ Failing This test is currently failing.

Failed: frontend

Failure Output

error[KORU010]: '|>' cannot start a line
  --> tests/regression/500_INTEGRATION_TESTING/520_BUG_REPRODUCTION/520_006_branch_constructor_bug/input.kz:10:0
    |
 10 | |> std.io:println(text: "Continuation: This correctly calls std.io.println.handler()")
    | ^^
  hint: '|>' is inline glue only — it joins a body to its branch handler, or chains void events on one line. Three legal layouts: (1) fold inline `~A() |> B()`; (2) split into separate top-level statements `~A()` then `~B()`; (3) delete the redundant `|> _` if the head suffices.

Code

// Test 998: Branch constructor bug

~import "$std/io"

~event probe {}

~probe = ok {}

~probe()
|> std.io:println(text: "Continuation: This correctly calls std.io.println.handler()")
input.kz

Test Configuration

MUST_RUN