mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
10 lines
198 B
Swift
10 lines
198 B
Swift
// RUN: %target-swift-frontend %s -emit-ir -o /dev/null
|
|
protocol S {
|
|
associatedtype I: IteratorProtocol
|
|
typealias E = I.Element
|
|
}
|
|
|
|
func foo<T: S>(_ s: T) -> Int where T.E == Int {
|
|
return 42
|
|
}
|