✓
Passing This code compiles and runs correctly.
Code
// Pins: optional branches inside an event body (subflow) absorb silently
// when unnamed — same rule as top-level dispatches. Gallery on-q: text
// pages keep; `catalog`/`style` go unnamed and the body does nothing.
import std/io
tor page-route { page: i64 }
| ?catalog
| ?text-input
| ?style
page-route = if(page == 0)
| then => catalog
| else |> if(page == 1)
| then => text-input
| else => style
tor on-q { page: i64 }
on-q = page-route(page)
| text-input |> std/io:print.ln("keep")
on-q(page: 0)
on-q(page: 1)
on-q(page: 2)
Actual
keep
Expected output
keep
Flows
subflow ~page-route click a branch to expand · @labels scroll to their anchor
if (page == 0)
subflow ~on-q click a branch to expand · @labels scroll to their anchor
page-route (page)
flow ~on-q click a branch to expand · @labels scroll to their anchor
on-q (page: 0)
flow ~on-q click a branch to expand · @labels scroll to their anchor
on-q (page: 1)
flow ~on-q click a branch to expand · @labels scroll to their anchor
on-q (page: 2)
Test Configuration
MUST_RUN