bynk.suite.duplicate_type
Error A suite declares two types of the same name.
A suite's types are used by their bare names in its cases, so a suite declares each name once: a second type Counted would leave Counted meaning two shapes. Rename one. The same holds for a suite's constants, as bynk.suite.duplicate_const, and for helper functions, as bynk.suite.duplicate_fn.
Example
type Counted = { n: Int }type Counted = { total: Int } // ✗ `Counted` again
type Counted = { n: Int }type Totalled = { total: Int } // ✓ a name eachIn the Book
See also
- The grammar rule it governs:
type_decl. - Every code in its category, Suites and cases, on the diagnostic index.
bynk explain bynk.suite.duplicate_typeshows the same from the installed toolchain, without a network.