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 cacd72f commit b7df342Copy full SHA for b7df342
test/Runtime/conformance_uniquing.swift
@@ -0,0 +1,20 @@
1
+// RUN: %target-run-simple-swift
2
+// REQUIRES: executable_test
3
+// REQUIRES: objc_interop
4
+
5
+import StdlibUnittest
6
+import Foundation
7
8
+let conformanceUniquingTests = TestSuite("ConformanceUniquing")
9
10
+func isSimpleSetAlgebra<T: SetAlgebra>(_: T.Type) -> Bool {
11
+ return T.self == T.Element.self
12
+}
13
14
+// rdar://problem/46685973
15
+conformanceUniquingTests.test("Nested types with the same name") {
16
+ expectTrue(isSimpleSetAlgebra(NSData.WritingOptions.self))
17
+ expectTrue(isSimpleSetAlgebra(JSONSerialization.WritingOptions.self))
18
19
20
+runAllTests()
0 commit comments