Files
swift-mirror/test/multifile/Inputs/require-layout-call-result-primary.swift
Doug Gregor 76eb767b97 [Type checker] Request nominal layout for the result types of function calls.
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.
2018-07-26 15:46:29 -07:00

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