Skip to content
Playground(another site)

bynk.history.outside_property

Error History[Agent] appears outside a property's for all binding — it is a test-only generator, not a value type (testing track slice 7, ADR 0155).

History[Agent] is a generator, not a value type: it stands for a run the test runner makes for a for all binding. So it may appear only as the type of that binding inside a property, never in a function signature, a field or a let. Move the check into a property and assert over run.

Example

demo/wallet.bynk
fn peek(w: History[Wallet]) -> Int { 0 } // ✗ not a value type
// tests/t.test.bynk
for all run: History[Wallet] { … } // ✓ in a `property`

In the Book

See also

  • Every code in its category, History properties, on the diagnostic index.
  • bynk explain bynk.history.outside_property shows the same from the installed toolchain, without a network.