// https://github.com/swiftlang/swift/issues/80985 struct S { func foo(_ fn: (T) -> U) -> S { fatalError() } } func foo(xs: S<(Int, Int)>) { _ = { let y = xs .foo{ $1 } .foo{ $0 } // RUN: %sourcekitd-test -req=complete -pos=%(line-1):11 %s -- %s } }