✓
Passing This code compiles and runs correctly.
Code
// A bare return can be a SLICE type: `-> []const u8`. The output type axis is
// {scalar (020_021), slice (here), record (020_024)} — `->` means "the single
// output is exactly this type", with no restriction on which type. Flat-produce
// form (`~echo -> s`), the same as the scalar 020_021.
~import std/io
~pub event echo { s: []const u8 } -> []const u8
~echo -> s
~echo(s: "hello"): r |> std/io:print.ln("{{ r:s }}")
Actual
hello
Expected output
hello
Flows
flow ~echo click a branch to expand · @labels scroll to their anchor
echo (s: "hello")
Test Configuration
MUST_RUN