mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
When `nil` is passed as an argument to call with multiple overloads it's possible that this would result in ambiguity where matched expected argument type doesn't conform to `ExpressibleByNilLiteral`. To handle situations like this locator for contextual mismatch has to be adjusted to point to the call where `nil` is used, so `diagnoseAmbiguityWithFixes` can identify multiple overloads and produce a correct ambiguity diagnostic. Resolves: rdar://75514153
16 KiB
16 KiB