Skip to content

[5.2][CodeCompletion] Fix a crash in context type analysis for tuple expr #31079

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

rintaro
Copy link
Member

@rintaro rintaro commented Apr 16, 2020

(Cherry-pick of #31073 to swift-5.2-branch)

When completing inside tuple expressions, the context tuple type may have fewer number of elements. In such cases, we cannot provide the expected type.

rdar://problem/61902917

@rintaro rintaro requested a review from a team as a code owner April 16, 2020 18:26
@rintaro
Copy link
Member Author

rintaro commented Apr 16, 2020

@swift-ci Please test

@rintaro rintaro changed the title [CodeCompletion] Fix a crash in context type analysis for tuple expr [5.2][CodeCompletion] Fix a crash in context type analysis for tuple expr Apr 16, 2020
@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 45713f7ef5c6af9510e0e61fa8d5f188a0fc9cc2

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 45713f7ef5c6af9510e0e61fa8d5f188a0fc9cc2

When completing inside tuple expressions, the context tuple type may
have fewer number of elements. In such cases, we cannot provide the
expected type.

rdar://problem/61668779
(cherry picked from commit 47e303a)
@rintaro rintaro force-pushed the 5.2-ide-completion-analyzetuple-rdar61668779 branch from 45713f7 to 6e8424a Compare April 16, 2020 22:05
@rintaro
Copy link
Member Author

rintaro commented Apr 16, 2020

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 45713f7ef5c6af9510e0e61fa8d5f188a0fc9cc2

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 45713f7ef5c6af9510e0e61fa8d5f188a0fc9cc2

@compnerd compnerd added the r5.2 label Apr 16, 2020
@rintaro
Copy link
Member Author

rintaro commented Apr 17, 2020

@swift-ci Please test Linux

@rintaro rintaro merged commit 517f414 into swiftlang:swift-5.2-branch Apr 17, 2020
@rintaro rintaro deleted the 5.2-ide-completion-analyzetuple-rdar61668779 branch April 17, 2020 19:21
@AnthonyLatsis AnthonyLatsis added swift 5.2 🍒 release cherry pick Flag: Release branch cherry picks labels Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants