013 capture under effect

✗ 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/670_NESTING_SWEEP/670_013_capture_under_effect/backend.zig:190:51: 0x10247b9ef 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: 0x1024816ab in main (backend)
            const result = root.main() catch |err| {
                                    ^
???:?:?: 0x18da2fdff in ??? (???)
???:?:?: 0x0 in ??? (???)
/Users/larsde/src/koru/scripts/regression_lib.sh: line 256: 25208 Abort trap: 6           ./backend output

Code

input.k

Expected output

n=1
n=1
n=1
n=1
n=1

Test Configuration

MUST_RUN