// RUN: %target-swift-emit-silgen -target %target-swift-5.9-abi-triple %s | %FileCheck %s public struct G {} // CHECK-LABEL: sil [ossa] @$s4main6caller2fnyyAA1GVyxGxQpXE_tRvzlF : $@convention(thin) (@guaranteed @noescape @callee_guaranteed @substituted (@pack_guaranteed Pack{repeat G}) -> () for ) -> () { public func caller(fn: (repeat G) -> ()) { fn(repeat G()) } // rdar://107108803 public struct UsesG { public init(builder: (repeat G) -> E) {} } UsesG { a, b, c in 0 } // rdar://107367324 func returnVariadicClosure(f: @escaping (repeat each T) -> R) -> (repeat each T) -> R { { (t: repeat each T) -> R in let tuple = (repeat each t) print(tuple) return f(repeat each t) } }