@@ -39,7 +39,7 @@ public struct ExitTest: Sendable, ~Copyable {
3939 /// Key paths are not sendable because the properties they refer to may or may
4040 /// not be, so this property needs to be `nonisolated(unsafe)`. It is safe to
4141 /// use it in this fashion because `ExitTestArtifacts` is sendable.
42- fileprivate nonisolated ( unsafe ) var _observedValues = [ PartialKeyPath < ExitTestArtifacts > ] ( )
42+ fileprivate var _observedValues = [ any PartialKeyPath < ExitTestArtifacts > & Sendable ] ( )
4343
4444 /// Key paths representing results from within this exit test that should be
4545 /// observed and returned to the caller.
@@ -56,7 +56,7 @@ public struct ExitTest: Sendable, ~Copyable {
5656 /// Within a child process running an exit test, the value of this property is
5757 /// otherwise unspecified.
5858 @_spi ( ForToolsIntegrationOnly)
59- public var observedValues : [ PartialKeyPath < ExitTestArtifacts > ] {
59+ public var observedValues : [ any PartialKeyPath < ExitTestArtifacts > & Sendable ] {
6060 get {
6161 var result = _observedValues
6262 if !result. contains ( \. exitCondition) { // O(n), but n <= 3 (no Set needed)
@@ -237,7 +237,7 @@ extension ExitTest {
237237/// convention.
238238func callExitTest(
239239 exitsWith expectedExitCondition: ExitCondition ,
240- observing observedValues: [ PartialKeyPath < ExitTestArtifacts > ] ,
240+ observing observedValues: [ any PartialKeyPath < ExitTestArtifacts > & Sendable ] ,
241241 expression: __Expression ,
242242 comments: @autoclosure ( ) -> [ Comment ] ,
243243 isRequired: Bool ,
0 commit comments