bynk.parse.unknown_predicate
Error An unknown refinement predicate.
A refined type is a base type plus a rule from a fixed set of built-in predicates: Matches, InRange, MinLength, MaxLength, Length, NonNegative, Positive, NonEmpty and IsoDate. There are no user-defined predicates. Use one of these; for a numeric range that is InRange(lo, hi), inclusive at both ends.
Example
type Age = Int where Between(0, 150) // ✗ not a predicatetype Age = Int where InRange(0, 150) // ✓In the Book
See also
- The grammar rule it governs:
predicate_name. - Every code in its category, Parser, on the diagnostic index.
bynk explain bynk.parse.unknown_predicateshows the same from the installed toolchain, without a network.