✗
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_036_capture_nested_qualified/backend.zig:190:51: 0x104a6f9ef 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: 0x104a756ab in main (backend)
const result = root.main() catch |err| {
^
???:?:?: 0x18da2fdff in ??? (???)
???:?:?: 0x0 in ??? (???)
/Users/larsde/src/koru/scripts/regression_lib.sh: line 256: 75952 Abort trap: 6 ./backend output Code
// FRONTIER (RED — the MULTI-CELL store question, parked): nested captures
// where each captured block updates its OWN cell by field-name routing.
// Spelling migrated to block form 2026-06-12; semantics are the open store
// design (see 320_034 for the routing problem, 320_038 for explicit
// binding-qualified routing).
~import std/io
~import std/control
const std = @import("std");
~event print-results { outer-val: i32, inner-val: i32 }
~proc print-results|zig {
std.debug.print("outer={d}, inner={d}\n", .{outer_val, inner_val});
}
~capture { oval: 0[i32] }
! as outer |> capture { ival: 0[i32] }
! as inner |> captured { ival: inner.ival + 10 }
| captured ires |> captured { oval: outer.oval + ires.ival }
| captured final |> print-results(outer-val: final.oval, inner-val: 10)
Expected output
outer=10, inner=10
Test Configuration
MUST_RUN