Skip to content

Commit 9254a3b

Browse files
authored
Merge pull request #7895 from DougGregor/rdar30702721
2 parents 8ec3bd3 + 56ffacc commit 9254a3b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// RUN: %target-swift-frontend %s -emit-ir
2+
3+
extension Sequence {
4+
typealias Element = Iterator.Element
5+
}
6+
7+
func f<C: Sequence>(c: C) where C.Iterator == C {
8+
c.makeIterator()
9+
}

0 commit comments

Comments
 (0)