Commit d63cbd4
authored
Replace fixture protocol in ConfirmationTests with an existential composition of parameterized protocols (#1598)
This modifies a test fixture in `ConfirmationTests` now that both a
Swift language limitation, and an associated runtime bug, have been
resolved.
The original issue was that the language did not support writing `any
RangeExpression<Int> & Sequence<Int> & Sendable`, but that was resolved
in Swift 6.2 in swiftlang/swift#76705. Once that
was resolved, it exposed a runtime bug which would crash when forming a
collection of such existential types. That was fixed in
swiftlang/swift#85346, and landed in Apple's
26.4 OSes (currently in beta).
This PR finally removes the workaround and writes this parameterized
test the idiomatic way, using a collection whose element type is a
composition of protocols where some are parameterized.
### Checklist:
- [x] Code and documentation should follow the style of the [Style
Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md).
- [x] If public symbols are renamed or modified, DocC references should
be updated.1 parent 95d9871 commit d63cbd4
3 files changed
+27
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
| 435 | + | |
435 | 436 | | |
436 | 437 | | |
437 | 438 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
37 | 44 | | |
38 | 45 | | |
39 | 46 | | |
| |||
152 | 159 | | |
153 | 160 | | |
154 | 161 | | |
| 162 | + | |
| 163 | + | |
155 | 164 | | |
156 | 165 | | |
157 | 166 | | |
158 | 167 | | |
159 | 168 | | |
160 | 169 | | |
161 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
162 | 184 | | |
163 | 185 | | |
164 | 186 | | |
| |||
168 | 190 | | |
169 | 191 | | |
170 | 192 | | |
171 | | - | |
| 193 | + | |
172 | 194 | | |
173 | 195 | | |
174 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
0 commit comments