mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Currently constraint solver is only capable of detecting universally unavailable overloads but that's insufficient because it's still possible to pick a contextually unavailable overload choice which could be better than e.g. generic overload, or one with defaulted arguments, marked as disfavored etc. Let's introduce `ConstraintSystem::isDeclUnavailable` which supports both universal and contextual unavailability and allow constraint solver to rank all unavailable overload choices lower than any other possible choice(s). Resolves: rdar://problem/59056638
961 B
961 B