Skip to content

Commit 2b6bda2

Browse files
committed
Update diagnostics in some tests
1 parent 74affff commit 2b6bda2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/Concurrency/global_actor_inference.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ actor WrapperActor<Wrapped> {
279279

280280
struct HasWrapperOnActor {
281281
@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}}
283283

284284
// expected-note@+1 3{{to make instance method 'testErrors()'}}
285285
func testErrors() {
@@ -338,7 +338,7 @@ actor WrapperActorBad2<Wrapped> {
338338

339339
actor ActorWithWrapper {
340340
@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}}
342342
func f() {
343343
_ = synced // expected-error{{'synced' isolated to global actor}}
344344
_ = $synced // expected-error{{'$synced' isolated to global actor}}
@@ -400,7 +400,7 @@ struct WrapperOnUnsafeActor<Wrapped> {
400400

401401
struct HasWrapperOnUnsafeActor {
402402
@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}}
404404

405405
func testUnsafeOkay() {
406406
_ = synced

0 commit comments

Comments
 (0)