✗
Failing This test is currently failing.
Failed: frontend
Failure Output
error[KORU002]: module not found: 'std/list'
--> tests/regression/600_STDLIB/660_COLLECTIONS/660_002_list_const_module/input.k:8:1
|
8 | import std/list
| ^
hint: check the import path, koru.json paths, and KORU_STDLIB/KORU_PATH environment variables Code
// RED PIN — module-scope list declaration (growable). PROPOSED, unbuilt.
//
// const-block declares a typed module-scope binding; std/list[i64] delegates
// codegen to the std/list library. `[i64]` echoes const's own `42[i32]`.
// push is VOID (chains `|>`, grounded by 810_071 print.ln |> query). Module-scope
// mutable state = the global category Koru has never had.
import std/io
import std/list
const {
xs: std/list[i64]
}
std/list:push(xs, 3) |> std/io:print.ln("{{ xs.len:d }}")
Expected output
1
Test Configuration
MUST_RUN