✗
Failing This test is currently failing.
Failed: backend-exec
Error Details
transform pass failed (TransformPreambleAtNestedSite). The pipeline cannot continue with a partially-transformed AST. Panic: transform pass failed — see error above
Failure Output
Showing last 10 of 66 lines
^
/Users/larsde/src/koru/tests/regression/300_ADVANCED_FEATURES/320_STDLIB/320_038_capture_binding_qualified/backend.zig:190:51: 0x1013639ef in main (backend)
const generated_code = try RuntimeEmitter.emit(compile_allocator, final_ast);
^
/opt/homebrew/Cellar/zig/0.15.2_1/lib/zig/std/start.zig:627:37: 0x1013696ab in main (backend)
const result = root.main() catch |err| {
^
???:?:?: 0x18da2fdff in ??? (???)
???:?:?: 0x0 in ??? (???)
/Users/larsde/src/koru/scripts/regression_lib.sh: line 256: 76117 Abort trap: 6 ./backend output Code
// FRONTIER (RED — the MULTI-CELL store question, parked): explicit
// binding-QUALIFIED cell routing. Both cells own a field named `count`;
// `captured { inner.count: ... }` / `{ outer.count: ... }` say which cell.
// Spelling migrated to block form 2026-06-12; the routing semantics are the
// open store design. This is the maximal form: 034 = no conflict, 036 =
// field-name routing, 038 = explicit qualification under conflict.
~import std/io
~import std/control
const std = @import("std");
~event print-results { outer-count: i32, inner-count: i32 }
~proc print-results|zig {
std.debug.print("outer={d}, inner={d}\n", .{outer_count, inner_count});
}
~capture { count: 0[i32] }
! as outer |> capture { count: 0[i32] }
! as inner |> captured { inner.count: inner.count + 10 }
| captured ires |> captured { outer.count: outer.count + ires.count }
| captured final |> print-results(outer-count: final.count, inner-count: 10)
Expected output
outer=10, inner=10
Test Configuration
MUST_RUN