Skip to content

[4.2][ConstraintSystem] Reinstate favoring more specialized of two generic… #17381

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
Jun 21, 2018
Merged

Conversation

rudkx
Copy link
Contributor

@rudkx rudkx commented Jun 20, 2018

… overloads.

This was originally commited in
3d32e89, and then backed out in
c40fd39 due to concern over
behavioral changes.

This version avoids the optimization when there are any optional types
involved in the signatures of the functions.

For these cases, compareDeclarations can return the wrong order at the
moment.

I have another PR in the works that attempts to begin unraveling some
of the issues around fixing the overload comparisons.

(cherry picked from commit 1a2d7f5)

… overloads.

This was originally commited in
3d32e89, and then backed out in
c40fd39 due to concern over
behavioral changes.

This version avoids the optimization when there are any optional types
involved in the signatures of the functions.

For these cases, compareDeclarations can return the wrong order at the
moment.

I have another PR in the works that attempts to begin unraveling some
of the issues around fixing the overload comparisons.

(cherry picked from commit 1a2d7f5)
@rudkx
Copy link
Contributor Author

rudkx commented Jun 20, 2018

@swift-ci Please test

@rudkx rudkx changed the title [ConstraintSystem] Reinstate favoring more specialized of two generic… [4.2][ConstraintSystem] Reinstate favoring more specialized of two generic… Jun 21, 2018
@rudkx rudkx merged commit 2d41d4a into swiftlang:swift-4.2-branch Jun 21, 2018
@rudkx rudkx deleted the rdar41109953-4.2 branch June 21, 2018 05:34
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.

1 participant