This commit is contained in:
Anthony Latsis
2025-01-11 14:21:00 +00:00
parent b31b90d862
commit 078be8595a

View File

@@ -68,13 +68,19 @@ do {
} }
// https://github.com/apple/swift/issues/68160 // https://github.com/apple/swift/issues/68160
// https://github.com/apple/swift/issues/69390
do { do {
struct G<each T, U> { struct G<each T, U> {
let f: (repeat Optional<each T>) -> U let f: (repeat Optional<each T>) -> U
var f2: (repeat each T) -> Void
init(f: @escaping (repeat Optional<each T>) -> U) { init(f: @escaping (repeat Optional<each T>) -> U) {
self.f = f self.f = f
} }
func foo() {
let _: (repeat each T) -> Void = f2
}
} }
} }