mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
10 lines
177 B
Swift
10 lines
177 B
Swift
// RUN: %target-swift-frontend %s -emit-ir
|
|
|
|
extension Sequence {
|
|
typealias Element = Iterator.Element
|
|
}
|
|
|
|
func f<C: Sequence>(c: C) where C.Iterator == C {
|
|
c.makeIterator()
|
|
}
|