mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Treat non-optional generic parameters as being more specialized than optional generic parameters, and penalize any solutions that involve generic arguments that are themselves Optional. By doing these things, we can remove the special-cased code for the two overloads of '??' in the stdlib, instead treating the (T?, T) overload as better than the (T?, T?) overload except where a user actually passes an optionally-typed value as the second parameter. Fixes: rdar://problem/19748710
198 KiB
198 KiB