Skip to content

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

Merged
hborla merged 2 commits into
swiftlang:masterfrom
vukrado:SR-11964-bad-diagnostic-mismatched-numeric-types
Feb 13, 2020
Merged

[CSSimplify] Increment impact for DefineMemberBasedOnUse when base type is any function type#29795
hborla merged 2 commits into
swiftlang:masterfrom
vukrado:SR-11964-bad-diagnostic-mismatched-numeric-types

Conversation

@vukrado

@vukrado vukrado commented Feb 12, 2020

Copy link
Copy Markdown
Contributor

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

@xedin xedin left a comment

Copy link
Copy Markdown
Contributor

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!

Comment thread lib/Sema/CSSimplify.cpp Outdated
@hborla

hborla commented Feb 12, 2020

Copy link
Copy Markdown
Member

Looks great! Thank you for your contribution!

@hborla

hborla commented Feb 12, 2020

Copy link
Copy Markdown
Member

@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