Skip to content

[5.3] [Typechecker] Emit a specialised diagnostic for redeclaration errors when the declaration is synthesised #31938

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 5 commits into from
May 21, 2020

Conversation

theblixguy
Copy link
Collaborator

@theblixguy theblixguy commented May 21, 2020

Cherry-pick of #31915


Explanation: We are not diagnosing redeclaration errors when the declarations involved are synthesised. This sometimes leads to compiler crashes. Upon investigation, this is a regression caused by #31037.

Scope: Affects situations where we have re-declarations.

SR Issue: SR-12839 / rdar://problem/63496795

Risk: Low. This fixes a compiler crash while also emitting improved diagnostics.

Testing: Added new tests which pass on Swift CI and updated some existing ones.

Reviewed by: @hborla

@theblixguy theblixguy requested a review from a team as a code owner May 21, 2020 16:37
@theblixguy
Copy link
Collaborator Author

@swift-ci please test

@compnerd compnerd added the r5.3 label May 21, 2020
@tkremenek tkremenek merged commit a242ad8 into swiftlang:release/5.3 May 21, 2020
@theblixguy theblixguy deleted the fix/SR-12839-5.3 branch May 21, 2020 20:50
@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.

4 participants