Skip to content

[Sema] Add missing null check for Type #81025

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
Apr 24, 2025

Conversation

hamishknight
Copy link
Contributor

@hamishknight hamishknight commented Apr 23, 2025

getType here can return a null type if the queried expression isn't part of the solution, which can currently happen for code completion. I'm working on a more principled fix for this, but until then this is a low-risk fix that will unblock the stress tester and can be cherry-picked to 6.2.

rdar://149759542
Resolves #80985

`getType` here can return a null type if the queried expression isn't
part of the solution, which can currently happen for code completion.
I'm working on a more principled fix for this, but until then this is
a low-risk fix that will unblock the stress tester and can be
cherry-picked to 6.2.

rdar://149759542
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@hamishknight
Copy link
Contributor Author

@swift-ci please SourceKit stress test

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!

@hamishknight hamishknight merged commit 1af98f7 into swiftlang:main Apr 24, 2025
6 checks passed
@hamishknight hamishknight deleted the add-null-check branch April 24, 2025 19:36
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.

Completion crash on closure trailing member
2 participants