Skip to content

[5.3] [CS] Emit syntactic diagnostics for for loop where clauses #33041

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
Jul 22, 2020

Conversation

hamishknight
Copy link
Contributor

5.3 cherry-pick of #33037, minus the last commit which is just a refactor.


  • Explanation: Fixes a 5.3 regression where we would fail to emit a group of diagnostics for the where clause of a for loop.

  • Scope: Fixes a 5.3 regression that could allow us to accept invalid code.

  • Radar: rdar://65903005

  • Risk: Low, this re-enables diagnostic logic that was previously enabled in 5.2.

  • Testing: Added unit test.

  • Reviewer: @xedin.

Add a function that deals with invoking syntactic
diagnostics for all the expressions involved in
a SolutionApplicationTarget.

Resolves SR-13260
Resolves rdar://65903005
@hamishknight hamishknight requested a review from a team as a code owner July 21, 2020 23:48
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@hamishknight hamishknight merged commit a176d64 into swiftlang:release/5.3 Jul 22, 2020
@hamishknight hamishknight deleted the to-no-avail-5.3 branch July 22, 2020 02:49
@AnthonyLatsis AnthonyLatsis added swift 5.3 🍒 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 swift 5.3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants