// RUN: %target-swift-frontend %s -parse-as-library -module-name a -emit-sil -g -o - | %FileCheck %s struct S {} public class UIView {} public protocol View {} public final class Signal { public func map(_ transform: @escaping (Value) -> U) -> Signal { return Signal() } } public final class C: UIView { private let t1: C? = nil private let t2: C? = nil func foo() -> Signal<(S, UIView)> { // CHECK: sil {{.*}}s1a1CC3foo // CHECK: debug_value {{.*}} name "self" // CHECK-NOT: debug_value {{.*}} name "view" // CHECK: return % return ( Signal() .map { [view = t1!] in ($0, view) }, Signal() .map { [view = t2!] in ($0, view) } ).0 } }