Commit 0f809e4
authored
Don't use
To determine if a class is a subclass of another, we can use `T.self is
U.Type` in an implicitly-opened existential context. Prior to the Swift
6 language mode, type existentials weren't openable, so we had to
recursively call a runtime function to check this. That's no longer a
concern for us.
### 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._getSuperclass() from the Swift runtime. (#1237)1 parent 880c37b commit 0f809e4
1 file changed
+3
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
| 363 | + | |
| 364 | + | |
369 | 365 | | |
| 366 | + | |
370 | 367 | | |
371 | 368 | | |
372 | 369 | | |
| |||
0 commit comments