✗
Failing This test is currently failing.
Failed: wrong-error
Error Details
output_emitted.zig:55:37: error: expected ';' after declaration
Failure Output
🎯 Compiler coordination: Passes: 20 (flow-based: elaborate, analysis, emission)
Error: output_emitted.zig:55:37: error: expected ';' after declaration
pub const Output = *Data // GC-managed, NOT owned or borrowed;
^ Code
~import app/data
~app/data:gc-alloc(): a |> app/data:process(d: a) // ❌ ERROR: [gc] doesn't satisfy M'owned|borrowed
Must contain:
branches are not handledFlows
flow ~gc-alloc click a branch to expand · @labels scroll to their anchor
gc-alloc
Imported Files
const std = @import("std");
const Data = struct { value: i32 };
~pub tor gc-alloc {} -> *Data<gc> // GC-managed, NOT owned or borrowed
~proc gc-alloc|zig {
const allocator = std.heap.page_allocator;
const d = allocator.create(Data) catch unreachable;
d.* = Data{ .value = 42 };
return d;
}
// Generic processor constrained to owned OR borrowed ONLY
~pub tor process { d: *Data<M'owned|borrowed> } -> *Data<M'owned|borrowed>
~proc process|zig {
return d;
}
// Generic processor constrained to owned OR borrowed ONLY
~pub tor process { data: *Data<M'owned|borrowed> } -> *Data<M'owned|borrowed>
~proc process|zig {
return data;
}