Files
swift-mirror/lib/Sema/CSOptimizer.cpp
Pavel Yaskevich 59109c2d60 [CSOptimizer] Score all of the overload choices matching on literals uniformly
Regardless of whether an overload choice matched on one or more
literal candidate types assign it a fixed score to make sure that
we always prefer outmost disjunction in cases like `test(1 + 2 + 3)`
since it gives us a better chance to prune once there is a contextual
type.
2024-12-17 11:36:40 -08:00

31 KiB