Files
swift-mirror/test/multifile/Inputs/require-layout-generic-class.swift
Doug Gregor cb972072a6 [Type checker] Request nominal layout for all potential metadata sources.
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.
2018-08-17 15:03:02 -07:00

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))
}