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.
2 parents 2b42671 + 0ce856b commit 6936d0dCopy full SHA for 6936d0d
test/stdlib/NSSetAPI.swift
@@ -67,6 +67,12 @@ NSSetAPI.test("AnyHashable containing NSSet that contains an NSSet") {
67
}
68
69
70
+NSSetAPI.test("Incorrectly constructed Set for backwards compatibility") {
71
+ let array:NSArray = [NSObject()] as NSArray
72
+ let wrongSet = Set<NSObject>(_immutableCocoaSet: array)
73
+ print(wrongSet.startIndex)
74
+}
75
+
76
var NSOrderedSetAPI = TestSuite("NSOrderedSetAPI")
77
78
NSOrderedSetAPI.test("Sequence") {
0 commit comments