mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add regression test for https://github.com/swiftlang/swift/issues/69390
This commit is contained in:
@@ -68,13 +68,19 @@ do {
|
||||
}
|
||||
|
||||
// https://github.com/apple/swift/issues/68160
|
||||
// https://github.com/apple/swift/issues/69390
|
||||
do {
|
||||
struct G<each T, U> {
|
||||
let f: (repeat Optional<each T>) -> U
|
||||
var f2: (repeat each T) -> Void
|
||||
|
||||
init(f: @escaping (repeat Optional<each T>) -> U) {
|
||||
self.f = f
|
||||
}
|
||||
|
||||
func foo() {
|
||||
let _: (repeat each T) -> Void = f2
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user