✓
Passing This code compiles and runs correctly.
Code
// Test: Parser should reject ~ (tilde) inside a Koru flow
// The ~ is a LEADER character that switches from host-language to Koru.
// Inside a continuation pipeline, you're already IN Koru, so ~ is invalid.
~import "$std/io"
~import "$std/control"
// This is WRONG - ~ should not appear inside flows
~capture(expr: { total: @as(i32, 0) })
| as |> captured { total: 42 }
| captured |> ~std.io:println("Should reject this!")
Test Configuration
Expected Behavior:
FRONTEND_COMPILE_ERROR