Skip to content

[Diagnostics] Upon keypath result contextual mismatch try to match ob… #28770

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
Dec 13, 2019

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Dec 13, 2019

…ject types

If there was a mismatch between last component type and contextual
key path result type, let's try to re-match the types with all optionals
stripped off. In cases where the problem is optionality difference
e.g. [Int] vs. [Int]? that propagates contextual information to
the last component which facilitates better diagnostics.

Resolves: rdar://problem/57843297

…ject types

If there was a mismatch between last component type and contextual
key path result type, let's try to re-match the types with all optionals
stripped off. In cases where the problem is optionality difference
e.g. `[Int] vs. [Int]?` that propagates contextual information to
the last component which facilitates better diagnostics.

Resolves: rdar://problem/57843297
@xedin xedin requested a review from hborla December 13, 2019 08:52
@xedin
Copy link
Contributor Author

xedin commented Dec 13, 2019

@swift-ci please smoke test

@xedin xedin merged commit fb76496 into swiftlang:master Dec 13, 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.

2 participants