|
15 | 15 | // RUN: %line-directive %t/CollectionCasts.swift -- %target-build-swift -Xfrontend -enable-experimental-collection-casts %t/CollectionCasts.swift -o %t/a.out
|
16 | 16 | // RUN: %line-directive %t/CollectionCasts.swift -- %target-run %t/a.out 2>&1
|
17 | 17 | // REQUIRES: executable_test
|
18 |
| -// XFAIL: * |
19 | 18 |
|
20 | 19 | import StdlibUnittest
|
21 | 20 |
|
@@ -92,8 +91,6 @@ tests.test("${Collection}/Down/${method}/${Key1}=>${Key0}") {
|
92 | 91 |
|
93 | 92 | % else:
|
94 | 93 |
|
95 |
| - // FIXME Set<Base> => Set<Derived> fails dynamically, and never even reaches |
96 |
| - // one of my runtime entry points. |
97 | 94 | guard let downcasted = expectNotEmpty(cast(source, to: ${Collection}<${Key0}>.self))
|
98 | 95 | else { return }
|
99 | 96 |
|
@@ -128,9 +125,6 @@ tests.test(
|
128 | 125 | % if method == 'Direct':
|
129 | 126 | let upcasted = source as [${Key1}:${Value1}]
|
130 | 127 | % else:
|
131 |
| - // FIXME: Conditional casting fails to dynamically type-check, and never even |
132 |
| - // reaches one of my runtime entry points unless the source type is identical |
133 |
| - // to the destination type. |
134 | 128 | let upcasted_ = source as Any as? [${Key1}:${Value1}]
|
135 | 129 |
|
136 | 130 | guard let upcasted = expectNotEmpty(upcasted_) else { return }
|
@@ -163,21 +157,6 @@ tests.test(
|
163 | 157 | ${DynamicKey}(42) as ${Key1} : ${DynamicValue}(42) as ${Value1},
|
164 | 158 | ${DynamicKey}(17) as ${Key1} : ${DynamicValue}(17) as ${Value1}]
|
165 | 159 |
|
166 |
| - // FIXME: The following are routed through |
167 |
| - // _dictionaryBridgeFromObjectiveCConditional, causing the test to crash, but |
168 |
| - // there's no reason for bridging in these cases: |
169 |
| - // |
170 |
| - // [Derived:Any] => [Derived:AnyObject] |
171 |
| - // [Derived:Any] => [Derived:Base] |
172 |
| - // [Base:Any] => [Derived:Derived] |
173 |
| - // [Base:Any] => [Derived:Base] |
174 |
| - // [Base:Any] => [Derived:AnyObject] |
175 |
| - // [Base:Any] => [Base:Derived] |
176 |
| - // [Base:Any] => [Base:Base] |
177 |
| - // [Base:Any] => [Base:AnyObject] |
178 |
| - // [Int:AnyFoo] => [Int:Int] |
179 |
| - // [Int:Any] => [Int:Int] |
180 |
| - // [Int:Any] => [Int:AnyFoo] |
181 | 160 | guard let downcasted = expectNotEmpty(source as? [${Key0}:${Value0}])
|
182 | 161 | else { return }
|
183 | 162 |
|
|
0 commit comments