Avatar
@swift-5.6.3 struct S {} func run <R>(body: () -> R) -> R { body() } func foo(x: S) -> S {x} func main() { run { let x = S() let y = foo(x: x) return y } }