Programming Search⌘K

Swift errors and diagnostics, page 14 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.

Function declares an opaque return type …, but the return statements in its body do not have matching underlying types. opaque_type_mismatched_underlying_type_candidates

The compiler puts it in the diagnostic group OpaqueTypeInference.

Code
opaque_type_mismatched_underlying_type_candidates
Severity
error
Message
function declares an opaque return type {}, but the return statements in its body do not have matching underlying types

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

Function declares an opaque return type …, but the return statements in its body do not have matching underlying types. opaque_type_mismatched_underlying_type_candidates_named

The compiler puts it in the diagnostic group OpaqueTypeInference.

Code
opaque_type_mismatched_underlying_type_candidates_named
Severity
error
Message
function declares an opaque return type {}, but the return statements in its body do not have matching underlying types

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