File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -200,11 +200,9 @@ await Task.detached { @SomeGlobalActor in
200200
201201// CHECK: Testing a separate task off the main actor
202202print ( " Testing a separate task off the main actor " )
203+ #if !os(WASI)
203204await Task . detached {
204205 if #available( SwiftStdlib 6 . 2 , * ) {
205- // Skip tests on platforms that use the same executor for the main
206- // actor and the global concurrent executor.
207- guard Task . defaultExecutor !== MainActor . executor else { return }
208206
209207 precondition ( !tryCastToP( mc) )
210208 precondition ( !tryCastToP( wrappedMC) )
@@ -218,6 +216,7 @@ await Task.detached {
218216 print ( " Cast succeeds, but shouldn't " )
219217 }
220218} . value
219+ #endif
221220
222221
223222// Ensure that we access mc later
You can’t perform that action at this time.
0 commit comments