bynk.exports.conflicting_visibility
Error A type is exported with conflicting visibilities.
A type is exported opaque, so consuming contexts can pass it around but not look inside it, or transparent, so they can. It cannot be both, and the compiler will not pick for you. Keep the clause you mean and delete the other. The same visibility twice is bynk.exports.duplicate_export.
Example
exports opaque { OrderId }exports transparent { OrderId } // ✗ already exported `opaque`
type OrderId = String where Matches("ORD-[0-9]+")
exports opaque { OrderId } // ✓ one visibilityIn 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.conflicting_visibilityshows the same from the installed toolchain, without a network.