✗
Failing This test is currently failing.
Failed: frontend
Failure Output
error[KORU002]: module not found: 'std/list'
--> tests/regression/600_STDLIB/660_COLLECTIONS/660_003_list_len_in_expr/input.k:4:1
|
4 | import std/list
| ^
hint: check the import path, koru.json paths, and KORU_STDLIB/KORU_PATH environment variables Code
// RED PIN — collection value in an EXPRESSION in an event call. PROPOSED.
// `xs.len + 10` is an opaque expression passed to print.ln. Void push chains `|>`.
import std/io
import std/list
std/list:new(i64)
| list xs |> std/list:push(xs, 7) |> std/io:print.ln("{{ xs.len + 10:d }}")
| err e |> std/io:print.ln("ERR {{ e:s }}")
Expected output
11
Test Configuration
MUST_RUN