mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
16 lines
245 B
Swift
16 lines
245 B
Swift
// RUN: %target-swift-frontend -emit-ir %s
|
|
|
|
public class Base {}
|
|
|
|
public class Derived : Base {}
|
|
|
|
public protocol P {}
|
|
|
|
public class C : P {}
|
|
|
|
public class G<X : P, Y : Base> {}
|
|
|
|
extension G where X == C, Y == Derived {
|
|
public func foo() {}
|
|
}
|