Skip to content
Playground(another site)

bynk.suite.type_generic

Error A suite declares a generic type; a suite type is a plain, non-generic shape.

A suite's type is a plain shape that only its tests care about, such as a row to read back with select[T], so it takes no type parameters. If you need a generic type, declare it in the target or in a commons, where the suite can use it. Otherwise write the concrete type.

Example

tests/desk.test.bynk
type Box[T] = { v: T } // ✗ a suite type is not generic
type IntBox = { v: Int } // ✓

In the Book

See also

  • The grammar rule it governs: type_decl.
  • Every code in its category, Suites and cases, on the diagnostic index.
  • bynk explain bynk.suite.type_generic shows the same from the installed toolchain, without a network.