✗
Failing This test is currently failing.
Failed: backend-exec
Failure Output
error[KORU161]: std/store:query(todos) is top-level-only: it cannot be nested inside a handler or loop body. `query` is a standing-rule installation (comptime-fused into the store's write paths), so a nested body has nothing to install into. The store IS declared - move the query to module (top-level) scope. Momentary verbs (insert/take) DO run in nested bodies.
--> /Users/larsde/src/koru/tests/regression/100_MODULE_SYSTEM/115_COMPTIME_MIRROR/115_019_store_query_in_module/lib.k:14:0 Code
// MIRROR of 690_076_store_indexed_field_read_in_stored: two stores, an indexed
// field read in a `stored` RHS, and a `std/store:query` readback, all inside an
// imported module.
//
// The indexed read has to lower to the SoA column of a store whose home is the
// module, and the query arm has to bind against it — two synthesized names that
// must agree on the same namespace. Split across two exported tors because a
// subflow body is one flow; the entry chains them.
import app/lib
app/lib:run() |> app/lib:show()
Expected output
done 1
Flows
flow ~run click a branch to expand · @labels scroll to their anchor
run
Test Configuration
MUST_RUN