bynk.types.example_unneeded
Error An @example on a refinement Val can already generate (only Matches and IsoDate take one).
Val cannot invent a string that matches a pattern, so a Matches or IsoDate refinement takes an @example for it to use. Every other refinement already has a value Val makes, so there is nothing for the example to do and it is refused. Remove the annotation.
Example
type Sku = String where NonEmpty @example("a") // ✗ `Val` already makes one
type Sku = String where NonEmpty // ✓In the Book
See also
- The grammar rule it governs:
refinement. - Every code in its category, Type checking, on the diagnostic index.
bynk explain bynk.types.example_unneededshows the same from the installed toolchain, without a network.