Skip to content

Commit 703fe0f

Browse files
authored
Merge pull request swiftlang#30603 from slavapestov/testcase-rdar60081992
Add test case for rdar://problem/60081992
2 parents 829ab27 + d7d7e2d commit 703fe0f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// RUN: %target-swift-frontend -typecheck %s
2+
3+
struct Model<E> where E: Comparable {
4+
enum TimePeriod: CaseIterable {
5+
case day, week, month, year
6+
}
7+
}
8+
9+
struct MyStruct<E> where E: Comparable {
10+
init<EA>(entries: EA) where EA: BidirectionalCollection, EA.Element == E, EA.Index == Int {
11+
typealias MDict<T> = [Model<E>.TimePeriod : T] where T: Numeric
12+
func maxDict<T>(_ keyPath: KeyPath<Model<E>, MDict<T>>) -> MDict<T> {
13+
fatalError()
14+
}
15+
16+
fatalError()
17+
}
18+
}

0 commit comments

Comments
 (0)