Skip to content

[5.1 Early] [ModuleInterface] Escape Type and Protocol when they're type members #24322

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

harlanhaskins
Copy link
Contributor

Previously, we wouldn't escape Type and Protocol at all in the
ASTPrinter, which lead to unfortunate build failures while compiling an
interface.

Instead, make sure we escape them whenever we print a name that's a type
member. Except for methods, which are erroneously allowed to be called
Type and Protocol.

rdar://49858651

(Cherry-pick of #24111 to 5.1-early because I barely missed the branch time)

Originally reviewed by @jrose-apple and @nathawes

Previously, we wouldn't escape `Type` and `Protocol` at all in the
ASTPrinter, which lead to unfortunate build failures while compiling an
interface.

Instead, make sure we escape them whenever we print a name that's a type
member. Except for methods, which are erroneously allowed to be called
`Type` and `Protocol`.

rdar://49858651
@harlanhaskins harlanhaskins requested a review from a team as a code owner April 26, 2019 21:46
@harlanhaskins harlanhaskins requested a review from AnnaZaks April 26, 2019 21:46
@jrose-apple
Copy link
Contributor

@swift-ci Please test

@harlanhaskins harlanhaskins merged commit a1f4a8f into swiftlang:swift-5.1-branch-04-24-2019 Apr 27, 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.

3 participants