Files
swift-mirror/test/Generics/indirectly_concrete_generic_param.swift
2022-05-10 12:56:17 -04:00

18 lines
388 B
Swift

// RUN: %target-typecheck-verify-swift
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 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, Int>, T : C, U == Int>
extension G where X : S<T, U>, T : C {}