Files
swift-mirror/lib/Sema/CSSimplify.cpp
Pavel Yaskevich 14dab87684 [ConstraintSystem] Discount effects while filtering call overload sets
Before these changes filtering would not favor some members because their
function types have `escaping` bit set when argument function type never
has it.

Double/CGFloat implicit conversion is one of such cases where `CGFloat.init`
overloads have `escaping` bit, which leads to solver checking more overloads
then it should.

Note that the difference in effects such as `async` is going to be handled
by scoring and ranking after partial solution is produced, so overloads that
differ only in `async` or `throws` are still going to be solved for as part
of "favored" set.
2022-06-28 13:07:23 -07:00

523 KiB