Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0142-rdar36549499.swift
Slava Pestov b4b873332f Update -requirement-machine-* flags in various tests
- 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
2022-03-31 15:57:36 -04:00

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
}