✗
Failing This test is currently failing.
Failed: output
Failure Output
🎯 Compiler coordination: Passes: 17 (flow-based: frontend, analysis, emission) Code
~import std/io
const std = @import("std");
const File = struct { handle: i32, dirty: bool };
~event open { path: []const u8 } -> *File<opened!>
~proc open|zig {
const f = std.heap.page_allocator.create(File) catch unreachable;
f.* = File{ .handle = 42, .dirty = false };
return f;
}
~[!]event close { file: *File<!opened> }
~proc close|zig {
std.debug.print("closed\n", .{});
std.heap.page_allocator.destroy(file);
}
~event flush-close { file: *File<!opened> }
~proc flush-close|zig {
std.debug.print("flushing...\n", .{});
std.heap.page_allocator.destroy(file);
}
~open(path: "test.txt")
Expected output
closed
Flows
flow ~open click a branch to expand · @labels scroll to their anchor
open (path: "test.txt")
Test Configuration
MUST_RUN