mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
24 lines
436 B
Plaintext
24 lines
436 B
Plaintext
class TestAddEquatable {
|
|
var property = "test"
|
|
private var prop = "test2"
|
|
let pr = "test3"
|
|
}
|
|
|
|
extension TestAddEquatable {
|
|
func test() -> Bool {
|
|
return true
|
|
}
|
|
}
|
|
|
|
extension TestAddEquatable: Equatable {
|
|
static func == (lhs: TestAddEquatable, rhs: TestAddEquatable) -> Bool {
|
|
return lhs.property == rhs.property &&
|
|
lhs.prop == rhs.prop &&
|
|
lhs.pr == rhs.pr
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|