Skip to content

Conversation

@xedin
Copy link
Contributor

@xedin xedin commented Jun 18, 2019

  • Explanation:

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.

  • Issue: rdar://problem/50869732

  • Scope: Diagnostics, in subset of cases where there multiple nested single-statement closures involved.

  • Risk: Low.

  • Testing: Added compiler regression tests.

  • Reviewed by: @DougGregor

Resolves: rdar://problem/50869732

xedin added 2 commits June 18, 2019 09:35
…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

@xedin xedin merged commit 75803c7 into swiftlang:swift-5.1-branch-06-12-2019 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.

1 participant