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 6fa05d4 commit 6f01f5cCopy full SHA for 6f01f5c
stdlib/public/core/SetVariant.swift
@@ -449,10 +449,10 @@ extension Set._Variant {
449
internal __consuming func intersection(
450
_ other: Set<Element>
451
) -> _NativeSet<Element> {
452
+#if _runtime(_ObjC)
453
switch (self.isNative, other._variant.isNative) {
454
case (true, true):
455
return asNative.intersection(other._variant.asNative)
-#if _runtime(_ObjC)
456
case (true, false):
457
return asNative.genericIntersection(other)
458
case (false, false):
@@ -471,7 +471,9 @@ extension Set._Variant {
471
}
472
473
return result
474
-#endif
475
+#else
476
+ return asNative.intersection(other._variant.asNative)
477
+#endif
478
479
0 commit comments