Skip to content

[Migrator] Add Swift. prefix to type(of:) expressions in Swift 3 #9362

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 1 commit into from
May 6, 2017
Merged

[Migrator] Add Swift. prefix to type(of:) expressions in Swift 3 #9362

merged 1 commit into from
May 6, 2017

Conversation

bitjammer
Copy link
Contributor

This changed to be resolved by overload resolution in Swift 4, and so
can suddenly be shadowed by similarly named properties and functions
that are visible at the expression's location. When in Swift 3 mode, if
there is a visible declaration named "type", add the Swift. prefix to
disambiguate in Swift 4 mode.

rdar://problem/31997321

This changed to be resolved by overload resolution in Swift 4, and so
can suddenly be shadowed by similarly named properties and functions
that are visible at the expression's location. When in Swift 3 mode, if
there is a visible declaration named "type", add the `Swift.` prefix to
disambiguate in Swift 4 mode.

rdar://problem/31997321
@bitjammer bitjammer requested a review from nathawes May 6, 2017 01:17
Copy link
Contributor

@nathawes nathawes left a comment

Choose a reason for hiding this comment

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

LGTM!

@bitjammer
Copy link
Contributor Author

@swift-ci Please test

@bitjammer bitjammer merged commit 4adfd08 into swiftlang:swift-4.0-branch May 6, 2017
@bitjammer bitjammer deleted the rdar-31997321-migrator-swift-typeof-swift-4.0-branch branch May 6, 2017 06:31
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.

2 participants