Skip to content

[CSSimplify] Increment impact for DefineMemberBasedOnUse when base type is any function type #29795

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 2 commits into from
Feb 13, 2020
Merged

[CSSimplify] Increment impact for DefineMemberBasedOnUse when base type is any function type #29795

merged 2 commits into from
Feb 13, 2020

Conversation

vukrado
Copy link
Contributor

@vukrado vukrado commented Feb 12, 2020

This pull request increments the impact by 10 for DefineMemberBasedOnUse fixes when the base type is any function type.

This allows the constraint system to prefer a case when a member is found and then has an argument to parameter mismatch like in the example in SR-11964.

https://bugs.swift.org/browse/SR-11964

Resolves: SR-11964
Resolves: rdar://problem/58028105

@xedin xedin self-requested a review February 12, 2020 21:23
Copy link
Contributor

@xedin xedin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! This makes sense, I have left a couple of minor notes inline, let's address those and it would be good to go!

@hborla
Copy link
Member

hborla commented Feb 12, 2020

Looks great! Thank you for your contribution!

@hborla
Copy link
Member

hborla commented Feb 12, 2020

@swift-ci please smoke test

@hborla hborla merged commit 8c1a959 into swiftlang:master Feb 13, 2020
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.

3 participants