Skip to content
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

[Swift 3.1][NSArray] Add check to isEqual(to:) whether values is _ObjectBridgeable #1002

Merged
merged 3 commits into from May 24, 2017

Conversation

norio-nomura
Copy link
Contributor

When NSArray are compared for equality, NSArray only checks if the element can be casted as AnyHashable. Therefore, the result was incorrect when the NSArray contained instances which are not Hashable but are subclasses of NSObject (eg NSArray and NSDictionary) .
This PR fixes that.

Fixes SR-4903

Same with #990

@parkera
Copy link
Member

parkera commented May 24, 2017

@swift-ci test and merge

@swift-ci swift-ci merged commit f8fe8f2 into apple:swift-3.1-branch May 24, 2017
@norio-nomura norio-nomura deleted the fix-sr-4903-on-31 branch May 24, 2017 23:20
@norio-nomura
Copy link
Contributor Author

Thanks! 🙏

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.

None yet

3 participants