Skip to content

Commit 206e3b1

Browse files
committed
SInt comparable
1 parent 178b0ff commit 206e3b1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/Interpreter/synthesized_extension_conformances.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ class TestSuper { }
1919
struct SInt: Codable, Equatable, Hashable {
2020
var x: Int
2121
}
22+
extension SInt: Comparable {
23+
static func < (_ lhs: Self, _ rhs: Self) -> Bool {
24+
return lhs.x < rhs.x
25+
}
26+
}
2227
struct SFloat {
2328
var y: Float
2429
}

0 commit comments

Comments
 (0)