Skip to content

[5.0][01-07-2019][sourcekitd][AST] Fix CursorInfo crash on methods with param with unresolved default values #21760

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

nathawes
Copy link
Contributor

Cherry-pick of #21749 (against 12-12-2018) for 01-07-2019

Resolves rdar://problem/46694149
See #21749 for info.

…ult value

When printing its annotated decl, we would would assume the param's default
value is present if the default value kind was "Normal". The type checker
explicitly sets the default value to nullptr if it doesn't type check though, so
we were crashing for that case. Added the check.

Resolves rdar://problem/46694149
@nathawes nathawes requested a review from a team as a code owner January 10, 2019 00:52
@nathawes
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 12c6118

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 12c6118

@shahmishal shahmishal merged commit 471b4a1 into swiftlang:swift-5.0-branch-01-07-2019 Jan 10, 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.

3 participants