✓
Passing This code compiles and runs correctly.
Code
// Test: Cross-module event invocation with literal argument
// The literal 3000 should be emitted as 3000, not as a variable reference
import app/lib/server
import std/io
app/lib/server:start(port: 3000): _ |> std/io:print.ln("Started!")
Actual
Server starting on port 3000
Started!
Expected output
Server starting on port 3000
Started!
Flows
flow ~start click a branch to expand · @labels scroll to their anchor
start (port: 3000)
Imported Files
// Library: defines a simple event with a port parameter
const std = @import("std");
~pub tor start { port: u16 } -> u16
~proc start|zig {
std.debug.print("Server starting on port {}\n", .{port});
return port;
}
Test Configuration
MUST_RUN