mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Lift the subtyping check for thrown error types out of the constraint solver, so we can re-use it elsewhere. There is a minor diagnostic change, from one that is actively misleading (it shows a legitimate conversion that's wrong) to one that is correct, which comes from us not treating "dropping throws" as a legitimate way to handle equality of function types.
11 KiB
11 KiB