Skip to content

Commit aea6b38

Browse files
Merge pull request #78579 from AnthonyLatsis/test-69390
Add regression test for #69390
2 parents 11ff5b4 + 078be85 commit aea6b38

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/Constraints/variadic_generic_types.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,19 @@ do {
6868
}
6969

7070
// https://github.com/apple/swift/issues/68160
71+
// https://github.com/apple/swift/issues/69390
7172
do {
7273
struct G<each T, U> {
7374
let f: (repeat Optional<each T>) -> U
75+
var f2: (repeat each T) -> Void
7476

7577
init(f: @escaping (repeat Optional<each T>) -> U) {
7678
self.f = f
7779
}
80+
81+
func foo() {
82+
let _: (repeat each T) -> Void = f2
83+
}
7884
}
7985
}
8086

0 commit comments

Comments
 (0)