Skip to content

Commit bdaf590

Browse files
Merge pull request #78580 from AnthonyLatsis/test-69390-6.1
[6.1] Add regression test for #69390
2 parents 9356ce9 + 620e032 commit bdaf590

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)