mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
16 lines
393 B
Swift
16 lines
393 B
Swift
// RUN: %target-typecheck-verify-swift -swift-version 4
|
|
|
|
// https://github.com/apple/swift/issues/49823
|
|
|
|
extension Sequence where Element: AnyObject {
|
|
public func f1(to object: AnyObject) -> Bool {
|
|
return contains { $0 === object }
|
|
}
|
|
}
|
|
|
|
extension Sequence where Iterator.Element: AnyObject {
|
|
public func f2(to object: AnyObject) -> Bool {
|
|
return contains { $0 === object }
|
|
}
|
|
}
|