bynk.types.unknown_annotation
Error An annotation after a refinement is not @example.
After a refinement, the only annotation Bynk knows is @example("…"), a sample value that the compiler checks against the refinement. Any other name is refused rather than ignored, so a misspelling cannot pass as a comment. Use @example, or delete the annotation. @example is accepted only on Matches and IsoDate.
Example
type Code = String where Matches("[A-Z]{3}") @sample("ABC") // ✗ no annotation `@sample`
type Code = String where Matches("[A-Z]{3}") @example("ABC") // ✓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.unknown_annotationshows the same from the installed toolchain, without a network.