Skip to content

Commit 7762cc8

Browse files
committed
Adjust test case for new diagnostic
1 parent 6839086 commit 7762cc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/ClangImporter/objc_async.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class MyButton : NXButton {
152152
}
153153

154154
@SomeGlobalActor func testOther() {
155-
onButtonPress() // expected-error{{instance method 'onButtonPress()' isolated to global actor 'MainActor' can not be referenced from different global actor 'SomeGlobalActor'}}
155+
onButtonPress() // expected-error{{call to main actor-isolated instance method 'onButtonPress()' in a synchronous global actor 'SomeGlobalActor'-isolated context}}
156156
}
157157

158158
func test() {

0 commit comments

Comments
 (0)