Files
swift-mirror/test/Generics/issue-55060.swift
2024-09-04 10:42:20 -04:00

22 lines
285 B
Swift

// RUN: %target-typecheck-verify-swift
protocol E {}
protocol P {
associatedtype V: E
}
protocol Q {
associatedtype G: P
}
protocol R {
associatedtype G
associatedtype M: Q where M.G == G
}
struct A<I: E>: P {
typealias V = I
func f<N: R>(_: N) where N.G == Self {}
}