Skip to content

[CSSolver] Don't skip generic overloads when non-generic one has SK_U… #60122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 19, 2022

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jul 19, 2022

…serConversion

In cases where matched concrete overload used a bridging, CF*, or
AnyHashable conversion, let's attempt generic overload choices
as well because one of them could produce a better solution e.g.
RawRepresentable for == where underlying type conforms to Equatable
has a better generic match than (AnyHashable, AnyHashable) -> Bool.

Resolves: rdar://95992916

…serConversion

In cases where matched concrete overload used a bridging, CF*, or
`AnyHashable` conversion, let's attempt generic overload choices
as well because one of them could produce a better solution e.g.
`RawRepresentable` for `==` where underlying type conforms to `Equatable`
has a better generic match than `(AnyHashable, AnyHashable) -> Bool`.

Resolves: rdar://95992916
@xedin xedin requested a review from hborla July 19, 2022 00:35
@xedin
Copy link
Contributor Author

xedin commented Jul 19, 2022

@swift-ci please test source compatibility

@xedin
Copy link
Contributor Author

xedin commented Jul 19, 2022

@swift-ci please test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants