mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Fixes the non-WMO crash in ReactiveCocoa (SR-8530), where IRGen was attempting to fulfill a metadata request based on a nominal type whose layout was not checked.
14 lines
206 B
Swift
14 lines
206 B
Swift
public class Base<T> {
|
|
var t: T
|
|
init(_ a: T) {
|
|
t = a
|
|
}
|
|
}
|
|
|
|
public class Sub<T> : Base<T> {
|
|
}
|
|
|
|
public func requestTypeThrough<T>(closure: ((Sub<T>, Int)) -> (), arg: T) {
|
|
closure((Sub(arg), 0))
|
|
}
|