You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This new attribute can be used on parameters of `@Sendable async` type
to indicate that the closures arguments passed to such parameters
should inherit the actor context where they are formed, which is not
the normal behavior for `@Sendable` closures.
Another part of rdar://76927008.
Copy file name to clipboardExpand all lines: test/Concurrency/actor_isolation.swift
+28-1Lines changed: 28 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ actor MyActor: MySuperActor {
70
70
classfunc synchronousClass(){}
71
71
staticfunc synchronousStatic(){}
72
72
73
-
func synchronous()->String{ text.first ??"nothing"} // expected-note 19{{calls to instance method 'synchronous()' from outside of its actor context are implicitly asynchronous}}
73
+
func synchronous()->String{ text.first ??"nothing"} // expected-note 20{{calls to instance method 'synchronous()' from outside of its actor context are implicitly asynchronous}}
0 commit comments