Skip to content

Commit ffd435d

Browse files
committed
Update test cases for @mainactor inference
1 parent 3ddf8c6 commit ffd435d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/IDE/print_ast_tc_decls.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ class d0170_TestAvailability {
536536
// PASS_COMMON-LABEL: {{^}}@objc class d0180_TestIBAttrs {{{$}}
537537

538538
@IBAction func anAction(_: AnyObject) {}
539-
// PASS_COMMON-NEXT: {{^}} @objc @IBAction func anAction(_: AnyObject){{$}}
539+
// PASS_COMMON-NEXT: {{^}} @objc @IBAction @MainActor func anAction(_: AnyObject){{$}}
540540

541541
@IBSegueAction func aSegueAction(_ coder: AnyObject, sender: AnyObject, identifier: AnyObject?) -> Any? { fatalError() }
542542
// PASS_COMMON-NEXT: {{^}} @objc @IBSegueAction func aSegueAction(_ coder: AnyObject, sender: AnyObject, identifier: AnyObject?) -> Any?{{$}}

test/attr/attr_objc.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1868,7 +1868,7 @@ class HasIBOutlet {
18681868
// CHECK-LABEL: {{^}}class HasIBAction {
18691869
class HasIBAction {
18701870
@IBAction func goodAction(_ sender: AnyObject?) { }
1871-
// CHECK: {{^}} @objc @IBAction func goodAction(_ sender: AnyObject?) {
1871+
// CHECK: {{^}} @objc @IBAction @MainActor func goodAction(_ sender: AnyObject?) {
18721872

18731873
@IBAction func badAction(_ sender: PlainStruct?) { }
18741874
// expected-error@-1{{method cannot be marked @IBAction because the type of the parameter cannot be represented in Objective-C}}

0 commit comments

Comments
 (0)