swift
58d6a5c8 - [CSRanking] Disambiguate static vs. instance method that used to be supported by a performance hack

Commit
166 days ago
[CSRanking] Disambiguate static vs. instance method that used to be supported by a performance hack Handle the following situation: ```swift struct S { func test() {} static func test(_: S) {} } ``` Calling `S.test(s)` where `s` has a type `S` without any other context should prefer a complete call to a static member over a partial application of an instance once based on the choice of the base type. The behavior is consistent for double-applies as well i.e. `S.test(s)()` if static method produced a function type it would be preferred. Resolves: rdar://165862285 (cherry picked from commit 7c32c2a21be736fd349f34a57520353cb0df7867)
Author
Committer
Parents
Loading