File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ actor WrapperActor<Wrapped> {
279
279
280
280
struct HasWrapperOnActor {
281
281
@WrapperOnActor var synced : Int = 0
282
- // expected-note@-1 3{{mutable state is only available within the actor instance }}
282
+ // expected-note@-1 3{{property declared here }}
283
283
284
284
// expected-note@+1 3{{to make instance method 'testErrors()'}}
285
285
func testErrors( ) {
@@ -338,7 +338,7 @@ actor WrapperActorBad2<Wrapped> {
338
338
339
339
actor ActorWithWrapper {
340
340
@WrapperOnActor var synced : Int = 0
341
- // expected-note@-1 3{{mutable state is only available within the actor instance }}
341
+ // expected-note@-1 3{{property declared here }}
342
342
func f( ) {
343
343
_ = synced // expected-error{{'synced' isolated to global actor}}
344
344
_ = $synced // expected-error{{'$synced' isolated to global actor}}
@@ -400,7 +400,7 @@ struct WrapperOnUnsafeActor<Wrapped> {
400
400
401
401
struct HasWrapperOnUnsafeActor {
402
402
@WrapperOnUnsafeActor var synced : Int = 0
403
- // expected-note@-1 3{{mutable state is only available within the actor instance }}
403
+ // expected-note@-1 3{{property declared here }}
404
404
405
405
func testUnsafeOkay( ) {
406
406
_ = synced
You can’t perform that action at this time.
0 commit comments