mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
16 lines
328 B
Swift
16 lines
328 B
Swift
// RUN: %target-swift-frontend -emit-ir -g %s > /dev/null
|
|
|
|
// https://github.com/apple/swift/issues/72719
|
|
|
|
protocol D {}
|
|
struct U: D, Equatable {}
|
|
class Q<T> {}
|
|
class R<V, E: D & Equatable> {}
|
|
extension R where E == U {
|
|
struct S<X> {}
|
|
static func a<T>(_: T) -> R {
|
|
let x = Q<S<T>>()
|
|
fatalError()
|
|
}
|
|
}
|