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

Thoughtless fixes for beta 6 #117

Merged
merged 1 commit into from
Aug 17, 2016
Merged

Thoughtless fixes for beta 6 #117

merged 1 commit into from
Aug 17, 2016

Conversation

Anviking
Copy link
Owner

@Anviking Anviking commented Aug 17, 2016

fixes #115

@Anviking Anviking merged commit b8cc8c1 into master Aug 17, 2016
@Anviking Anviking deleted the beta6 branch August 17, 2016 12:40
@@ -110,9 +110,9 @@ public func ~=<T>(lhs: T.Type, rhs: Any.Type) -> Bool {

// FIXME: I'm not sure about === equality
public func ==(lhs: DecodingError.Metadata, rhs: DecodingError.Metadata) -> Bool {
return lhs.object === rhs.object
return lhs.object as AnyObject === rhs.object as AnyObject
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this makes much sense if they're not objects.

Copy link
Owner Author

Choose a reason for hiding this comment

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

@NachoSoto In what sense? If they're not objects they get wrapped in different objects and the reference equality fails. Not 100% sure this works as intended with NSDictionaries though, as there is no test coverage of this.

Also, I appreciate your comments – 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.

Error building master with Carthage version 0.17.2 using Xcode version 8.0 beta 6 (8S201h)
2 participants