Skip to content

Conversation

harlanhaskins
Copy link
Contributor

@harlanhaskins harlanhaskins commented Sep 6, 2019

If we see MyModule.Type, the parser thinks this is a metatype type.
Escape the name Type and Protocol so the parser can recognize they're type names.

Fixes #53823
Fixes rdar://55094784

@jrose-apple jrose-apple requested a review from beccadax September 6, 2019 21:56
@harlanhaskins
Copy link
Contributor Author

@swift-ci please smoke test

Copy link
Contributor

@beccadax beccadax left a comment

Choose a reason for hiding this comment

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

I have one small documentation change you definitely need to make; the rest I could be wrong about.

@harlanhaskins harlanhaskins force-pushed the type-and-circumstance branch 2 times, most recently from c59a128 to 8109832 Compare September 10, 2019 00:18
If we see `MyModule.Type`, the parser thinks this is a metatype type.
Escape the name `Type` so the parser can recognize it's a type name.

Fixes [SR-11422](https://bugs.swift.org/browse/SR-11422) rdar://55094784
@harlanhaskins
Copy link
Contributor Author

@brentdax How's it look now?

@harlanhaskins
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - e7d8d249bf20e445eb982ef80cc4c3ffdf37beec

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - e7d8d249bf20e445eb982ef80cc4c3ffdf37beec

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.

[SR-11422] Generated .swiftinterface got an error when imported
4 participants