Skip to content

[5.0] [Name lookup] Implement name shadowing rule for Data.withUnsafeBytes. #22083

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

Conversation

DougGregor
Copy link
Member

Address an annoying source compatibility issue with the introduction
of Data.withUnsafeBytes, which is ambiguous with Swift NIO's
implementatio of the same function. Do so with a narrow hackish name
shadowing rule (the Swift NIO version shadows the Foundation version)
that we will eventually generalize to something sensible.

Fixes rdar://problem/46850346.

Address an annoying source compatibility issue with the introduction
of Data.withUnsafeBytes, which is ambiguous with Swift NIO's
implementatio of the same function. Do so with a narrow hackish name
shadowing rule (the Swift NIO version shadows the Foundation version)
that we will eventually generalize to something sensible.

Fixes rdar://problem/46850346.

(cherry picked from commit 18f4bcb)
@DougGregor DougGregor requested a review from a team as a code owner January 24, 2019 04:59
@DougGregor
Copy link
Member Author

@swift-ci please test

@AnnaZaks AnnaZaks merged commit 81b8454 into swiftlang:swift-5.0-branch Jan 24, 2019
@DougGregor DougGregor deleted the swift-nio-name-shadowing-5.0 branch January 24, 2019 23:10
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