Skip to content

[Sema] Improve diagnostics for key path root type inferred as option accessing wrapped member #33603

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

Conversation

LucianoPAlmeida
Copy link
Contributor

Improve diagnostics for key path root type inferred as option accessing wrapped member to emphasizes that the problem is with the key path's root type being inferred as an optional.

Resolves SR-13079.

@LucianoPAlmeida
Copy link
Contributor Author

@swift-ci Please smoke test

@LucianoPAlmeida
Copy link
Contributor Author

@swift-ci Please smoke test Windows Platform

1 similar comment
@LucianoPAlmeida
Copy link
Contributor Author

@swift-ci Please smoke test Windows Platform

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.

Looks great, thank you!

Copy link
Contributor

@hamishknight hamishknight left a comment

Choose a reason for hiding this comment

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

Thanks!

@LucianoPAlmeida LucianoPAlmeida force-pushed the SR-13079-improve-kp-optional-root-diagnostics branch 2 times, most recently from 4c8e8e7 to b4bd3a7 Compare August 24, 2020 22:35
@LucianoPAlmeida LucianoPAlmeida force-pushed the SR-13079-improve-kp-optional-root-diagnostics branch from b4bd3a7 to 87dac43 Compare August 27, 2020 04:01
@LucianoPAlmeida
Copy link
Contributor Author

Just adjusted for adding both ?. and !. fix-its, since ! no longer crashes

@LucianoPAlmeida LucianoPAlmeida force-pushed the SR-13079-improve-kp-optional-root-diagnostics branch from 87dac43 to f6f611a Compare August 27, 2020 11:57
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.

LGTM!

@LucianoPAlmeida
Copy link
Contributor Author

@swift-ci Please smoke test

@LucianoPAlmeida LucianoPAlmeida force-pushed the SR-13079-improve-kp-optional-root-diagnostics branch from f6f611a to 4b921c3 Compare August 27, 2020 23:07
@LucianoPAlmeida
Copy link
Contributor Author

@swift-ci Please smoke test

@LucianoPAlmeida
Copy link
Contributor Author

@swift-ci Please smoke test Windows Platform

@LucianoPAlmeida
Copy link
Contributor Author

@swift-ci Please smoke test MacOS platform

@LucianoPAlmeida LucianoPAlmeida merged commit 82fc202 into swiftlang:master Aug 28, 2020
@LucianoPAlmeida LucianoPAlmeida deleted the SR-13079-improve-kp-optional-root-diagnostics branch August 28, 2020 02:54
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.

5 participants