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/attr/attr_objc.swift
+15-15Lines changed: 15 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -528,21 +528,21 @@ class subject_subscriptInvalid5 {
528
528
classsubject_subscriptInvalid6{
529
529
@objc
530
530
subscript(a:PlainProtocol)->Int{ // expected-error {{subscript cannot be marked @objc because its type cannot be represented in Objective-C}}
531
-
// expected-note@-1{{protocol'PlainProtocol' is not '@objc'}}
531
+
// expected-note@-1{{protocol-constrained type containing protocol 'PlainProtocol' cannot be represented in Objective-C}}
532
532
get{return0}
533
533
}
534
534
}
535
535
classsubject_subscriptInvalid7{
536
536
@objc
537
537
subscript(a:Protocol_Class1)->Int{ // expected-error {{subscript cannot be marked @objc because its type cannot be represented in Objective-C}}
538
-
// expected-note@-1{{protocol'Protocol_Class1' is not '@objc'}}
538
+
// expected-note@-1{{protocol-constrained type containing protocol 'Protocol_Class1' cannot be represented in Objective-C}}
539
539
get{return0}
540
540
}
541
541
}
542
542
classsubject_subscriptInvalid8{
543
543
@objc
544
544
subscript(a:Protocol_Class1&Protocol_Class2)->Int{ // expected-error {{subscript cannot be marked @objc because its type cannot be represented in Objective-C}}
545
-
// expected-note@-1{{protocol'Protocol_Class1' is not '@objc'}}
545
+
// expected-note@-1{{protocol-constrained type containing protocol 'Protocol_Class1' cannot be represented in Objective-C}}
546
546
get{return0}
547
547
}
548
548
}
@@ -641,7 +641,7 @@ class infer_instanceFunc1 {
641
641
642
642
@objcfunc func12_(a:PlainProtocol){}
643
643
// expected-error@-1 {{method cannot be marked @objc because the type of the parameter cannot be represented in Objective-C}}
644
-
// expected-note@-2 {{protocol'PlainProtocol' is not '@objc'}}
644
+
// expected-note@-2 {{protocol-constrained type containing protocol 'PlainProtocol' cannot be represented in Objective-C}}
0 commit comments