✗
Failing This test is currently failing.
Failed: must-fail-passed
Failure Output
🎯 Compiler coordination: Passes: 14 (flow-based: frontend, analysis, emission) Code
~import app/fs
~app/fs:open-two(path1: "test1.txt", path2: "test2.txt")
| opened f |> app/fs:close(file: f.file1) // Close first file only
Error Verification
Expected Error Pattern
This test must fail because it opens TWO files but only closes ONE.
The second file (f.file2) still has a cleanup obligation at the terminator.Actual Compiler Output
🎯 Compiler coordination: Passes: 14 (flow-based: frontend, analysis, emission)Imported Files
const std = @import("std");
const File = struct { handle: i32 };
~pub event open-two { path1: []const u8, path2: []const u8 }
| opened { file1: *File<opened!>, file2: *File<opened!> } // TWO obligations!
~proc open-two|zig {
std.debug.print("Opening two files: {s}, {s}\n", .{path1, path2});
const allocator = std.heap.page_allocator;
const f1 = allocator.create(File) catch unreachable;
const f2 = allocator.create(File) catch unreachable;
f1.* = File{ .handle = 42 };
f2.* = File{ .handle = 43 };
return .{ .opened = .{ .file1 = f1, .file2 = f2 } };
}
~pub event close { file: *File<!opened> } // Consumes one obligation
~proc close|zig {
std.debug.print("Closing file\n", .{});
}
Test Configuration
MUST_FAIL