Skip to content

[Foundation] Make CocoaError.Code and URLError.Code Hashable. #10437

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
Jun 21, 2017

Conversation

jrose-apple
Copy link
Contributor

This is consistent with imported error codes, which are always Hashable. URLError.Code was also Hashable in Swift 3.1 by virtue of being defined as an enum; the change to a struct broke that.

rdar://problem/32066434

This is consistent with imported error codes, which are always
Hashable. URLError.Code was also Hashable in Swift 3.1 by virtue of
being defined as an enum; the change to a struct broke that.

rdar://problem/32066434
@jrose-apple jrose-apple requested a review from parkera June 21, 2017 02:53
@jrose-apple
Copy link
Contributor Author

@swift-ci Please smoke test

@jrose-apple jrose-apple merged commit e9622db into swiftlang:master Jun 21, 2017
@jrose-apple jrose-apple deleted the error-code-hash branch June 21, 2017 03:15
jrose-apple added a commit to jrose-apple/swift that referenced this pull request Jun 21, 2017
…ang#10437)

This is consistent with imported error codes, which are always
Hashable. URLError.Code was also Hashable in Swift 3.1 by virtue of
being defined as an enum; the change to a struct broke that.

rdar://problem/32066434
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