bynk.resolve.const_name_case
Error A constant's name is not upper-camel case (MaxRetries, not maxRetries).
A constant is named in upper-camel case, a capital letter and then letters, digits or _, like a variant, so that a constant reads differently from a binding wherever it is used. The grammar accepts any identifier here and leaves the case to the checker, so a lower-case name is reported with a suggested spelling instead of failing to parse. Rename it, and every use of it: MaxRetries, not maxRetries.
Example
const maxRetries: Int = 3 // ✗ a constant's name starts with a capital
const MaxRetries: Int = 3 // ✓In the Book
See also
- The grammar rule it governs:
const_decl. - Every code in its category, Resolution, on the diagnostic index.
bynk explain bynk.resolve.const_name_caseshows the same from the installed toolchain, without a network.