Commit b1789fd
authored
Ensure
When `NonisolatedNonsendingByDefault` is enabled, overload resolution of
`ExitTest.__store()` picks the overload that takes any old `T` instead
of taking a function. This overload exists only to suppress certain
unhelpful compiler diagnostics and its implementation immediately
aborts, which causes the described failure.
Adding `nonisolated(nonsending)` or `@concurrent` to the "good" overload
doesn't appear to satisfy the type checker, so mark the "bad" overload
as explicitly disfavoured instead.
I am unable to add a unit test for this case due to
swiftlang/swift-package-manager#9293.
Resolves #1375.
### 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.NonisolatedNonsendingByDefault doesn't break exit tests. (#1383)1 parent db3ec85 commit b1789fd
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| 395 | + | |
395 | 396 | | |
396 | 397 | | |
397 | 398 | | |
| |||
0 commit comments