Programming Search⌘K

Swift errors and diagnostics, page 5 of 20

The error codes and warnings of Swift, with the message that each one prints and what causes it. This page has 3,841 cards.

Type … has no case …, but it does have a case named …; if … worked before, a recent change to the underlying C enum may have affected how prefixes are stripped from its case names. could_not_find_imported_enum_case

Code
could_not_find_imported_enum_case
Severity
error
Message
type {} has no case {}, but it does have a case named {}; if {} worked before, a recent change to the underlying C enum may have affected how prefixes are stripped from its case names

Source: github.com. JSON record. This entry is a card. Help write this page.

Modules … and … both declare module … as a cross-import overlay, which may cause paradoxical behavior when looking up names in them; please report this bug to the maintainers of these modules. cross_imported_by_both_modules

Code
cross_imported_by_both_modules
Severity
warning
Message
modules {} and {} both declare module {} as a cross-import overlay, which may cause paradoxical behavior when looking up names in them; please report this bug to the maintainers of these modules

Source: github.com. JSON record. This entry is a card. Help write this page.

'@derivative(of:)' attribute requires function to return a two-element tuple; first element must have label 'value:' and second element must have label 'pullback:' or 'differential:'. derivative_attr_expected_result_tuple

Code
derivative_attr_expected_result_tuple
Severity
error
Message
'@derivative(of:)' attribute requires function to return a two-element tuple; first element must have label 'value:' and second element must have label 'pullback:' or 'differential:'

Source: github.com. JSON record. This entry is a card. Help write this page.