✗
Failing This test is currently failing.
Failed: backend-exec
Error Details
Panic: comptime evaluation failed — see the diagnostic above
Failure Output
Showing last 10 of 44 lines
^
/Users/larsde/src/koru/tests/regression/300_ADVANCED_FEATURES/310_COMPTIME/310_091_aspire_comptime_loop/backend.zig:240:51: 0x104428edf 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: 0x104430cab in main (backend)
const result = root.main() catch |err| {
^
???:?:?: 0x18eec7dff in ??? (???)
???:?:?: 0x0 in ??? (???)
/Users/larsde/src/koru/scripts/regression_lib.sh: line 387: 69089 Abort trap: 6 ./backend output Code
const std = @import("std");
~[comptime] tor tick { n: i64 } -> i64
~proc tick|zig {
return n;
}
~[comptime] tor report { v: i64 }
~proc report|zig {
std.debug.print("{}\n", .{v});
}
~[comptime] pub tor countdown {}
~[comptime] countdown = #loop tick(n: 5)
| go i when i > 0 |> @loop(n: i - 1)
| go i |> report(v: i)
~[comptime] countdown()
Flows
subflow ~countdown click a branch to expand · @labels scroll to their anchor
#loop tick (n: 5)
flow ~countdown click a branch to expand · @labels scroll to their anchor
countdown
Test Configuration
MUST_RUN