019 store query in module

✗ 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

input.k

Expected output

done 1

Flows

flow ~run click a branch to expand · @labels scroll to their anchor
run

Test Configuration

MUST_RUN