-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[CSDiag] Always find and set correct declaration context for sub-expr… #25443
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
@swift-ci please build toolchain |
I'm going to reduce example from SwiftUI and add it to the suite. |
Linux Toolchain (Ubuntu 16.04) Install command |
@swift-ci please build toolchain macOS |
macOS Toolchain Install command |
…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
@swift-ci please test |
@swift-ci please test |
Build failed |
Build failed |
@swift-ci please test Linux platform |
@swift-ci please test macOS platform |
…ession type-check
Replace dedicated method with
typeCheckChildIndependently
alwayssetting 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