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
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -121,7 +121,7 @@ func subject_genericFunc<T>(t: T) { // expected-error {{@objc can only be used w
121
121
func subject_funcParam(a:@objcInt){ // expected-error {{attribute can only be applied to declarations, not types}} {{1-1=@objc }} {{27-33=}}
122
122
}
123
123
124
-
@objc // expected-error {{@objc cannot be applied to this declaration}} {{1-7=}}
124
+
@objc // expected-error {{'@objc' attribute cannot be applied to this declaration}} {{1-7=}}
125
125
structsubject_struct{
126
126
@objc
127
127
varsubject_instanceVar:Int // expected-error {{@objc can only be used with members of classes, @objc protocols, and concrete extensions of classes}} {{3-8=}}
@@ -133,7 +133,7 @@ struct subject_struct {
133
133
func subject_instanceFunc(){} // expected-error {{@objc can only be used with members of classes, @objc protocols, and concrete extensions of classes}} {{3-8=}}
134
134
}
135
135
136
-
@objc // expected-error {{@objc cannot be applied to this declaration}} {{1-7=}}
136
+
@objc // expected-error {{'@objc' attribute cannot be applied to this declaration}} {{1-7=}}
137
137
structsubject_genericStruct<T>{
138
138
@objc
139
139
varsubject_instanceVar:Int // expected-error {{@objc can only be used with members of classes, @objc protocols, and concrete extensions of classes}} {{3-8=}}
@@ -209,7 +209,7 @@ enum subject_enum: Int {
209
209
@objc // expected-error {{attribute has no effect; cases within an '@objc' enum are already exposed to Objective-C}} {{3-9=}}
210
210
case subject_enumElement5, subject_enumElement6
211
211
212
-
@nonobjc // expected-error {{@nonobjc cannot be applied to this declaration}}
212
+
@nonobjc // expected-error {{'@nonobjc' attribute cannot be applied to this declaration}}
0 commit comments