011 order on query refused

✓ Passing Passing: the compiler rejects this program as expected.

Code

input.k

Actual compiler output

error[KORU161]: std/store:query(pool): `order:` is a preorder clause - a query sweep has no levels to order (declare the store [tree] and walk std/store:preorder)
  --> tests/regression/600_STDLIB/695_STORE_TREE/695_011_order_on_query_refused/input.k:11:0

Must contain:

`order:` is a preorder clause

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (pool, capacity: 64, source: hp: i64)
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (pool, source: hp: 5)
flow ~query click a branch to expand · @labels scroll to their anchor
query (pool, order: "hp")

Test Configuration

MUST_ERROR