✗
Failing This test is currently failing.
Failed: frontend
Failure Output
Showing last 10 of 25 lines
11 | |> _
| ^^
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.
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 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 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
Processed: 20
Processed: 60
Alert: High value detected! Result was: 60Test Configuration
MUST_RUN