Skip to content

Commit 82cc37f

Browse files
committed
Add another test for SE-0110-related regression.
Add another test for the issue fixed in 9f68dee, this time from the report in https://bugs.swift.org/browse/SR-5429.
1 parent 8d9f97c commit 82cc37f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/Constraints/tuple_arguments.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1574,3 +1574,7 @@ func rdar33159366(s: AnySequence<Int>) {
15741574
let a = Array(s)
15751575
_ = a.flatMap(itsFalse)
15761576
}
1577+
1578+
func sr5429<T>(t: T) {
1579+
_ = AnySequence([t]).first(where: { (t: T) in true })
1580+
}

0 commit comments

Comments
 (0)