We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d620886 commit 07a6612Copy full SHA for 07a6612
test/Constraints/opened_existentials.swift
@@ -552,3 +552,16 @@ do {
552
}
553
554
555
+
556
+// rdar://91922018
557
+do {
558
+ func f<E>(_ c: some Collection<E>) -> some Collection<E> {
559
+ return c
560
+ }
561
+ let c: any Collection<Int>
562
+ let result = f(c)
563
+ do {
564
+ var types = SwiftTypePair(typeOf: result, type2: SwiftType<any Collection<Int>>.self)
565
+ types.assertTypesAreEqual()
566
567
+}
0 commit comments