bynk.exports.duplicate_in_clause
Error A name appears twice in one exports clause.
An exports clause lists each type once. Naming one twice is a typo or a pasted name, and the second may have been meant for another type. Delete the repeat, or correct the name. The same type in two separate clauses is bynk.exports.duplicate_export.
Example
exports transparent { Order, Order } // ✗ `Order` listed twice
type Order = { total: Int }
exports transparent { Order } // ✓ listed onceIn the Book
See also
- The grammar rule it governs:
exports_decl. - Every code in its category, Exports, on the diagnostic index.
bynk explain bynk.exports.duplicate_in_clauseshows the same from the installed toolchain, without a network.