mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
13 lines
232 B
Swift
13 lines
232 B
Swift
// RUN: %target-swift-frontend -emit-ir %s
|
|
|
|
// https://github.com/apple/swift/issues/57019
|
|
|
|
class A { }
|
|
class B<T> : A { }
|
|
class C {
|
|
func bar(x : (A?) -> Void) { }
|
|
}
|
|
class D<T> : C {
|
|
override func bar(x : (B<T>?) -> Void) { }
|
|
}
|