mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Previously we could end up with a ContextualMismatch fix and a MissingConformance fix for different elements of the `matchTypes` disjunction, leading to an ambiguity. Instead, avoid recording the ContextualMismatch if we're matching an existential, and tweak the MissingConformance failure to have a custom diagnostic for EnumElementPattern matching.
22 KiB
22 KiB