bynk.val.unknown_type
Error Val[T] names a type that does not resolve.
Val[T] fabricates a value of the type it names, so the name must resolve to a type the suite can see. A misspelt name stops here, before anything else about the value can be checked. Fix the spelling, or declare the type in the target unit or the suite. The same code covers a for all binder whose type does not resolve.
Example
type Age = Int where InRange(0, 150)
// tests/ages.test.bynklet a = Val[Agee] // ✗ no such typelet a = Val[Age] // ✓ the declared typeIn the Book
- Testing › Val[T] — value fabrication
- Testing › @example — a value for a pattern
- Testing
- Write tests, stub collaborators, and pin a `Val[T]`
See also
- The grammar rule it governs:
val_expr. - Every code in its category, Value fabrication, on the diagnostic index.
bynk explain bynk.val.unknown_typeshows the same from the installed toolchain, without a network.