mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The logic here is pretty expensive, and there's no reason to do it at all if we aren't going to end up with any same-type requirements.
18 lines
388 B
Swift
18 lines
388 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
// RUN: %target-swift-frontend -typecheck -debug-generic-signatures %s 2>&1 | %FileCheck %s
|
|
|
|
class S<T, U> where T : P, U == T.T {}
|
|
|
|
protocol P {
|
|
associatedtype T
|
|
}
|
|
|
|
struct G<X, T, U> {}
|
|
|
|
class C : P {
|
|
typealias T = Int
|
|
}
|
|
|
|
// CHECK-LABEL: Generic signature: <X, T, U where X : S<T, C.T>, T : C, U == C.T>
|
|
extension G where X : S<T, U>, T : C {}
|