mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The TypedPattern and IsPattern constraints were incorrectly written, with conversions propagating out of the patterns, when really conversions ought to propagate into patterns. In any case, it seems like we really want equality here. Fix the constraints to use equality, and have the cast constraint operate on the external pattern type instead of the subpattern type.
591 KiB
591 KiB