mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Under review [here](https://forums.swift.org/t/se-0499-support-copyable-escapable-in-simple-standard-library-protocols/83297). Multi-part version of #85079.
25 lines
457 B
Plaintext
25 lines
457 B
Plaintext
class TestAddEquatable {
|
|
var property = "test"
|
|
private var prop = "test2"
|
|
let pr = "test3"
|
|
}
|
|
|
|
extension TestAddEquatable: Equatable {
|
|
func test() -> Bool {
|
|
return true
|
|
}
|
|
|
|
static func == (lhs: borrowing TestAddEquatable, rhs: borrowing TestAddEquatable) -> Bool {
|
|
return lhs.property == rhs.property &&
|
|
lhs.prop == rhs.prop &&
|
|
lhs.pr == rhs.pr
|
|
}
|
|
}
|
|
|
|
extension TestAddEquatable {
|
|
}
|
|
|
|
|
|
|
|
|