Skip to content

Commit aa5b95b

Browse files
committed
workaround of Xcode NSObject extension error
1 parent 34a8fb7 commit aa5b95b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Foundation/NSObject.swift

+1-3
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ extension NSMutableCopying {
6262
}
6363
}
6464

65-
public class NSObject : NSObjectProtocol {
65+
public class NSObject : NSObjectProtocol, Equatable, Hashable {
6666
// Important: add no ivars here. It will subvert the careful layout of subclasses that bridge into CF.
6767

6868
public init() {
@@ -154,9 +154,7 @@ public class NSObject : NSObjectProtocol {
154154
public class func classForKeyedUnarchiver() -> AnyClass {
155155
return self
156156
}
157-
}
158157

159-
extension NSObject : Equatable, Hashable {
160158
public var hashValue: Int {
161159
return hash
162160
}

0 commit comments

Comments
 (0)