✓
Passing This code compiles and runs correctly.
Code
// Test identity branch syntax: | branch Type instead of | branch { field: Type }
// MUST_RUN: Verify identity values flow correctly at runtime
~import std/io
~pub tor get-number {} -> i32
~proc get-number|zig {
return 42;
}
~pub tor get-message {} -> string
~proc get-message|zig {
return "Hello from identity branch!";
}
// Test that identity values work correctly
~get-number(): n |> std/io:print.ln("Got number: {{ n:d }}")
~get-message(): msg |> std/io:print.ln("{{ msg:s }}")
Actual
Got number: 42
Hello from identity branch!
Expected output
Got number: 42
Hello from identity branch!
Flows
flow ~get-number click a branch to expand · @labels scroll to their anchor
get-number
flow ~get-message click a branch to expand · @labels scroll to their anchor
get-message
Test Configuration
MUST_RUN