✗
Failing This test is currently failing.
Failed: backend-exec
Error Details
output_emitted.zig:71:25: error: switch on type '[]const u8'
Failure Output
🎯 Compiler coordination: Passes: 20 (flow-based: elaborate, analysis, emission)
Error: output_emitted.zig:71:25: error: switch on type '[]const u8'
switch (result) {
^~~~~~
referenced by:
flow0: output_emitted.zig:42:56
main: output_emitted.zig:148:22
4 reference(s) hidden; use '-freference-trace=6' to see all references Code
// Test: Circular Imports
//
// input.kz imports module_b.kz, which imports input.kz back.
// Proves: (1) circular imports compile without infinite loop,
// (2) cross-module dispatch works in BOTH directions across the cycle.
//
// Flow: top-level invokes module_b's event, which calls back into input's
// event, which prints. If any link in the cycle breaks, the expected
// output disappears and the test fails loudly.
~import app/module_b
const std = @import("std");
~pub tor from-a { msg: string } -> string
~proc from-a|zig {
std.debug.print("input.kz received: {s}\n", .{msg});
return msg;
}
~app/module_b:from-b(msg: "hello from input")
Expected output
input.kz received: hello from input
Flows
flow ~from-b click a branch to expand · @labels scroll to their anchor
from-b (msg: "hello from input")
Imported Files
// Module B - imports input.kz back, closing the cycle.
// from-b dispatches back into input.s from-a, then relays its result.
~import app/input
~pub tor from-b { msg: string } -> string
~from-b = app/input:from-a(msg)
| received r -> r
Test Configuration
MUST_RUN