mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Once you’ve called a function and retrieved a result, IRGen will want layout information for the result type. Make sure that the type checker precomputes it.
5 lines
121 B
Swift
5 lines
121 B
Swift
func foo<T, U: C<T>>(_ t: T, _ u: U) {
|
|
// Calling a function that returns a C<T> requests its layout
|
|
_ = bar(t, u)
|
|
}
|