✓
Passing This code compiles and runs correctly.
Code
// A terminal declared through the proto door is a usable identity, not only a
// registered name. `std/proto:f64(Health)` mints `Health`, emits its f64
// host lowering, and lets ordinary Koru events take and return it. The point
// is the contract that later compounds can share: `Health` names the same
// thing everywhere it is referenced.
import std/io
import std/proto
std/proto:f64(Health)
pub tor report-health { health: Health } -> Health
report-health -> health
report-health(health: 98.6): value |> std/io:print.ln("health {{ value:d }}")
Actual
health 98.6
Expected output
health 98.6
Flows
flow ~f64 click a branch to expand · @labels scroll to their anchor
f64 (expr: Health)
flow ~report-health click a branch to expand · @labels scroll to their anchor
report-health (health: 98.6)
Test Configuration
MUST_RUN