✗
Failing This test is currently failing.
Failed: frontend
Failure Output
Showing last 10 of 33 lines
error[KORU010]: '|>' cannot start a line
--> tests/regression/300_ADVANCED_FEATURES/310_COMPTIME/310_015_when_clauses/input.kz:15:0
|
15 | |> _
| ^^
hint: '|>' is inline glue, never a line start — it joins a branch handler to its body and chains steps on one line.
• Keep the chain inline regardless of length.
• If a step ends in a multi-line { } block, put the next |> on the same line as that block's closing } : pairwise { ... } |> self { ... }
• Void chains may instead split into separate top-level statements (~A() then ~B()).
• Drop a trailing |> _ if the head already suffices. Code
// Test when clauses - conditional tap execution
const std = @import("std");
~import std/taps
~event process { value: usize }
|> alert(result: d)
|> _
// Test with low value (should not trigger alert)
~process(value: 10)
|> _
// Test with high value (should trigger alert)
~process(value: 30)
|> _Expected output
Processed: 20
Processed: 60
Alert: High value detected! Result was: 60Test Configuration
MUST_RUN