✓
Passing This code compiles and runs correctly.
Code
// Pins: `|?` catch-all expands remaining optional arms when the consumer
// is an event body (subflow), same as top-level (355_002 / 355_005).
// Gallery on-q wants: text pages absorb `q`; `|? |> quit()` for the rest.
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")
|? |> std/io:print.ln("quit")
on-q(page: 0)
on-q(page: 1)
on-q(page: 2)
Actual
quit
keep
quit
Expected output
quit
keep
quit
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