Files
swift-mirror/lib/Sema/CSSimplify.cpp
Pavel Yaskevich bc8d34f2b1 [ConstraintSystem] Increase impact of implicit Double<->CGFloat associated with contextual type
Consider conversion with context to be worse by default
because it means that expression as a whole couldn't get
to the expected type.

This also helps to disambiguate situations with
multiple solutions where one of them has a contextual
mismatch that requires implicit conversion and
another produces correct contextual type but requires
implicit conversion inside to get there.
2021-03-17 00:18:17 -07:00

443 KiB