mirror of
https://github.com/apple/swift.git
synced 2026-02-27 18:26:24 +01:00
IsPattern coercions aren't properly implemented since they rely on doing a runtime cast, which can fail for things like function subtyping. Make clients choose what behavior they want. Unfortunately we need to preserve the current behavior in places since it's relied upon for things like exhaustivity checking. We ought to properly implement coercion handling, then we should be able to remove this.