diff --git a/test/Constraints/variadic_generic_types.swift b/test/Constraints/variadic_generic_types.swift index f5866266d33..bb4a1ffbdb1 100644 --- a/test/Constraints/variadic_generic_types.swift +++ b/test/Constraints/variadic_generic_types.swift @@ -68,13 +68,19 @@ do { } // https://github.com/apple/swift/issues/68160 +// https://github.com/apple/swift/issues/69390 do { struct G { let f: (repeat Optional) -> U + var f2: (repeat each T) -> Void init(f: @escaping (repeat Optional) -> U) { self.f = f } + + func foo() { + let _: (repeat each T) -> Void = f2 + } } }