File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed
stdlib/private/StdlibUnittest Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -128,14 +128,14 @@ public struct TypeIdentifier : Hashable, Comparable {
128
128
internal var objectID : ObjectIdentifier {
129
129
return ObjectIdentifier ( value)
130
130
}
131
- }
132
131
133
- public func < ( lhs: TypeIdentifier , rhs: TypeIdentifier ) -> Bool {
134
- return lhs. objectID < rhs. objectID
135
- }
132
+ public static func < ( lhs: TypeIdentifier , rhs: TypeIdentifier ) -> Bool {
133
+ return lhs. objectID < rhs. objectID
134
+ }
136
135
137
- public func == ( lhs: TypeIdentifier , rhs: TypeIdentifier ) -> Bool {
138
- return lhs. objectID == rhs. objectID
136
+ public static func == ( lhs: TypeIdentifier , rhs: TypeIdentifier ) -> Bool {
137
+ return lhs. objectID == rhs. objectID
138
+ }
139
139
}
140
140
141
141
extension TypeIdentifier
Original file line number Diff line number Diff line change @@ -3034,15 +3034,15 @@ struct Pair<T : Comparable> : Comparable {
3034
3034
3035
3035
var first : T
3036
3036
var second : T
3037
- }
3038
3037
3039
- func == < T> ( lhs: Pair < T > , rhs: Pair < T > ) -> Bool {
3040
- return lhs. first == rhs. first && lhs. second == rhs. second
3041
- }
3038
+ static func == < T> ( lhs: Pair < T > , rhs: Pair < T > ) -> Bool {
3039
+ return lhs. first == rhs. first && lhs. second == rhs. second
3040
+ }
3042
3041
3043
- func < < T> ( lhs: Pair < T > , rhs: Pair < T > ) -> Bool {
3044
- return [ lhs. first, lhs. second] . lexicographicallyPrecedes (
3045
- [ rhs. first, rhs. second] )
3042
+ static func < < T> ( lhs: Pair < T > , rhs: Pair < T > ) -> Bool {
3043
+ return [ lhs. first, lhs. second] . lexicographicallyPrecedes (
3044
+ [ rhs. first, rhs. second] )
3045
+ }
3046
3046
}
3047
3047
3048
3048
public func expectEqualsUnordered<
You can’t perform that action at this time.
0 commit comments