bynk.stub.generic_op
Error A test stub targets a capability operation that declares its own type parameter — not supported at v1.
A stub gives an operation a fixed answer, but an operation with its own type parameter, fn dedup[T](…), answers in whatever type the caller names, and a fixed value cannot be that. Such an operation cannot be stubbed. Test through the capability's real provider, and stub the other, non-generic operations of the capability if you need to.
Example
stub Idempotency.dedup(_) returns None // ✗ `dedup` has its own type parameter
case "reserve returns the cached value" { let result <- reserve.call() // ✓ the real provider answers expect result is None}In the Book
See also
- Every code in its category, Stubs, on the diagnostic index.
bynk explain bynk.stub.generic_opshows the same from the installed toolchain, without a network.