bynk.resolve.unknown_static_member
Error Referenced an unknown static member (e.g. T.x).
A type was named with a . and a member it does not have. T.name refers to a variant of the sum type T or to a static method declared on it, and a misspelt variant has no such member. Some built-in types have a closed set: HttpResult, ErrorStatus and RoundingMode only their variants, Float only parse, pi and e, and Decimal only parse and fromInt. Check the spelling against the declaration, or declare the missing static method.
Example
type Colour = | Red | Green
Colour.Gren // ✗ `Colour` has no variant `Gren`
Colour.Green // ✓ the declared variantIn the Book
See also
- The grammar rule it governs:
field_access. - Every code in its category, Resolution, on the diagnostic index.
bynk explain bynk.resolve.unknown_static_membershows the same from the installed toolchain, without a network.