bynk.consumes.type_alias_repeated
Error An exported type is aliased more than once, or is selected both bare and aliased, in consumes U { … }.
A type is in scope under one name, so it is selected once in a file: the alias is that name. Selecting it twice, or both bare and aliased, would leave two names for it. Keep one selection. The bare selection of a type is not needed, since consumes payment already brings every exported type into scope.
Example
context shop
consumes payment { AuthId as A, AuthId as B } // ✗ `AuthId` aliased twice
consumes payment { AuthId as Auth } // ✓ one aliasIn the Book
See also
- The grammar rule it governs:
consumes_decl. - Every code in its category, Consumes, on the diagnostic index.
bynk explain bynk.consumes.type_alias_repeatedshows the same from the installed toolchain, without a network.