on master help sign in
Update test.swift
commitfdef133d3dc78fb5926a6a7d28ac2d3150863ef9 authorAkshat Gadhwal <akshatgadhwal1@gmail.com> dateTue 6 Oct 2020, 20:56 (6 years ago) parentfd01f0a
1 file changed+2−2
tests/syntax-tests/source/Swift/test.swift+2−2
tests/syntax-tests/source/Swift/test.swift+2−2
@@ -22,7 +22,7 @@ class Friend : Comparable {
2222 }
2323}
2424func < (lhs: Friend, rhs: Friend) -> Bool {
25− return lhs.age < rhs.age } func > (lhs: Friend, rhs: Friend) -> Bool {
25+ return lhs.age < rhs.age }; func > (lhs: Friend, rhs: Friend) -> Bool {
2626 return lhs.age > rhs.age
2727}
2828func == (lhs: Friend, rhs: Friend) -> Bool {
@@ -37,7 +37,7 @@ func == (lhs: Friend, rhs: Friend) -> Bool {
3737 let friend1 = Friend(name: "Sergey", age: 35)
3838 let friend2 = Friend(name: "Sergey", age: 30)
3939
40− print("\Compare Friend object. Same person? (friend1 == friend2)")
40+ print("Compare Friend object. Same person? (friend1 == friend2)")
4141
4242func sayHelloWorld() {
4343 print("Hello World")