Skip to content

Commit 9f3ad28

Browse files
authored
Merge pull request #864 from apple/revert-839-revert-828-nsobject-operator-static-func
2 parents 6c080f9 + 233477e commit 9f3ad28

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-
}
327326

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)
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+
}
338338
}
339339

340340
extension NSObject : CustomDebugStringConvertible {

0 commit comments

Comments
 (0)