bynk.resolve.unknown_field
Error A record construction names a field the record type does not declare.
A record construction names a field the record type does not declare. A record's fields are fixed by its type declaration, and a literal may set only those. This is usually a typo in the field name, or a field meant for a different type. Reading a field a value does not have is the sibling code bynk.types.unknown_field.
Example
type User = { name: String, age: Int }
User { name: "Ada", age: 36, admin: true } // ✗ no field `admin`User { name: "Ada", age: 36 } // ✓ only the declared fieldsIn the Book
See also
- The grammar rule it governs:
record_construction. - Every code in its category, Resolution, on the diagnostic index.
bynk explain bynk.resolve.unknown_fieldshows the same from the installed toolchain, without a network.