Skip to content

[Diagnostics] Transform incorrect generic arguments into a contexua… #26716

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
Aug 19, 2019

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Aug 19, 2019

…l mismatch

Since this kind of failure is really a conversion failure, let's
inherit from Contextual{Mismatch, Failure} which also helps with
storage for from/to types and their resolution.

Also let's use original types involved in conversion to form
this fix, which helps to perserve all of the original sugar.

…l mismatch

Since this kind of failure is really a conversion failure, let's
inherit from `Contextual{Mismatch, Failure}` which also helps with
storage for from/to types and their resolution.

Also let's use original types involved in conversion to form
this fix, which helps to perserve all of the original sugar.
@xedin
Copy link
Contributor Author

xedin commented Aug 19, 2019

@swift-ci please smoke test

@xedin xedin requested a review from sl August 19, 2019 17:02
@xedin xedin merged commit 0b3c210 into swiftlang:master Aug 19, 2019
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