Skip to content

Conversation

kavon
Copy link
Member

@kavon kavon commented Jun 26, 2023

• Description: If you wrote ~SomeType in places like a where clause or in the angle brackets of a generic parameter, you'd get rather bizarre error messages indicating a failure to parse. While it's meant to still stay illegal to write such a type there, now we specifically emit an error to the effect that you can't write a suppressed type there.
• Risk: Very Low. only specially recognizes an illegal character at the start of parsing a type to emit a diagnostic.
• Original PR: #66942
• Reviewed By:
• Testing: regression tests included
• Resolves: rdar://110421020

It's still an error in most places, but now we don't
give as bizzare of an error message.

rdar://110421020
@kavon kavon requested a review from a team as a code owner June 26, 2023 23:39
@kavon
Copy link
Member Author

kavon commented Jun 26, 2023

@swift-ci please test

Copy link
Member

@ahoppen ahoppen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kavon kavon merged commit 5a28850 into swiftlang:release/5.9 Jun 27, 2023
@kavon kavon deleted the 5.9-parsing-without-improvement branch June 27, 2023 18:36
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.

3 participants