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
Copy file name to clipboardExpand all lines: test/Concurrency/actor_isolation.swift
+26-5Lines changed: 26 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -23,12 +23,12 @@ actor class MySuperActor {
23
23
24
24
actorclass MyActor:MySuperActor{
25
25
letimmutable:Int=17
26
-
vartext:[String]=[] // expected-note 4{{mutable state is only available within the actor instance}}
26
+
vartext:[String]=[] // expected-note 5{{mutable state is only available within the actor instance}}
27
27
28
28
classfunc synchronousClass(){}
29
29
staticfunc synchronousStatic(){}
30
30
31
-
func synchronous()->String{ text.first ??"nothing"} // expected-note 4{{only asynchronous methods can be used outside the actor instance; do you want to add 'async'?}}
31
+
func synchronous()->String{ text.first ??"nothing"} // expected-note 5{{only asynchronous methods can be used outside the actor instance; do you want to add 'async'?}}
0 commit comments