Skip to content

[5.1][CSDiag] Always find and set correct declaration context for sub-expr type-check #25567

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 2 commits into from
Jun 18, 2019

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jun 18, 2019

Replace dedicated method with typeCheckChildIndependently always
setting the closest possible declaration context for type-check call.
This fixes a problem where sub-expression comes from multiple levels
or nested closures but CSDiag didn't re-typecheck parent closure.

Resolves: rdar://problem/50869732

xedin added 2 commits June 18, 2019 09:34
…ession type-check

Replace dedicated method with `typeCheckChildIndependently` always
setting the closest possible declaration context for type-check call.
This fixes a problem where sub-expression comes from multiple levels
or nested closures but CSDiag didn't re-typecheck parent closure.

Resolves: rdar://problem/50869732
(cherry picked from commit a5df786)
@xedin
Copy link
Contributor Author

xedin commented Jun 18, 2019

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - a6fec42

@xedin
Copy link
Contributor Author

xedin commented Jun 18, 2019

@swift-ci please test Linux platform

@xedin xedin merged commit 0974006 into swiftlang:swift-5.1-branch Jun 18, 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