mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
- Don't pass 'verify' since it's now the default - Update tests where diagnostics changed in a correct way to pass 'on' instead - Delete compiler_scale/explicit_requirements_perf.swift since it's not testing anything with the requirement machine
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
|
|
}
|