Skip to content

Commit 6b7ee30

Browse files
authored
Revert "[gardening][NSObject] Move operators into types" (#839)
1 parent 67927a1 commit 6b7ee30

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Foundation/NSObject.swift

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -323,18 +323,18 @@ open class NSObject : NSObjectProtocol, Equatable, Hashable {
323323
open var hashValue: Int {
324324
return hash
325325
}
326+
}
326327

327-
/// Returns a Boolean value indicating whether two values are equal.
328-
///
329-
/// Equality is the inverse of inequality. For any values `a` and `b`,
330-
/// `a == b` implies that `a != b` is `false`.
331-
///
332-
/// - Parameters:
333-
/// - lhs: A value to compare.
334-
/// - rhs: Another value to compare.
335-
public static func ==(lhs: NSObject, rhs: NSObject) -> Bool {
336-
return lhs.isEqual(rhs)
337-
}
328+
/// Returns a Boolean value indicating whether two values are equal.
329+
///
330+
/// Equality is the inverse of inequality. For any values `a` and `b`,
331+
/// `a == b` implies that `a != b` is `false`.
332+
///
333+
/// - Parameters:
334+
/// - lhs: A value to compare.
335+
/// - rhs: Another value to compare.
336+
public func ==(lhs: NSObject, rhs: NSObject) -> Bool {
337+
return lhs.isEqual(rhs)
338338
}
339339

340340
extension NSObject : CustomDebugStringConvertible {

0 commit comments

Comments
 (0)