Skip to content

Commit 84b0267

Browse files
committed
Add test case for SR-9583
https://bugs.swift.org/browse/SR-9583 / rdar://problem/47097468
1 parent 487258d commit 84b0267

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// RUN: %target-swift-frontend -emit-ir -primary-file %s %S/Inputs/sr9583-other.swift -module-name foo
2+
3+
protocol P {
4+
associatedtype A
5+
typealias T = S1<Self>
6+
}
7+
8+
struct S1<G: P>: Sequence, IteratorProtocol {
9+
mutating func next() -> G.A? {
10+
return nil
11+
}
12+
}
13+
14+
func f(_: LazyFilterSequence<S3.T>) { }
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
struct S2 {
2+
let v: Int
3+
}
4+
5+
struct S3: P {
6+
typealias A = S2
7+
}

0 commit comments

Comments
 (0)