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/ClangImporter/cf.swift
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -161,11 +161,11 @@ func testNonConstVoid() {
161
161
162
162
classNuclearFridge:CCRefrigerator{} // expected-error {{cannot inherit from Core Foundation type 'CCRefrigerator'}}
163
163
extensionCCRefrigerator{
164
-
@objcfunc foo(){} // expected-error {{method cannot be marked @objc because Core Foundation types are not classes in Objective-C}}
164
+
@objcfunc foo(){} // expected-error {{method cannot be marked '@objc' because Core Foundation types are not classes in Objective-C}}
165
165
func bar(){} // okay, implicitly non-objc
166
166
}
167
167
168
168
protocolSwiftProto{}
169
169
@objcprotocolObjCProto{}
170
-
extensionCCRefrigerator:ObjCProto{} // expected-error {{Core Foundation class 'CCRefrigerator' cannot conform to @objc protocol 'ObjCProto' because Core Foundation types are not classes in Objective-C}}
170
+
extensionCCRefrigerator:ObjCProto{} // expected-error {{Core Foundation class 'CCRefrigerator' cannot conform to '@objc' protocol 'ObjCProto' because Core Foundation types are not classes in Objective-C}}
Copy file name to clipboardExpand all lines: test/ClangImporter/enum-error.swift
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -118,7 +118,7 @@ func testError() {
118
118
119
119
#if ERRORS
120
120
classObjCTest{
121
-
@objcfunc foo()->TestError{} // expected-error {{method cannot be marked @objc because its result type cannot be represented in Objective-C}} expected-note {{Swift structs cannot be represented in Objective-C}}
121
+
@objcfunc foo()->TestError{} // expected-error {{method cannot be marked '@objc' because its result type cannot be represented in Objective-C}} expected-note {{Swift structs cannot be represented in Objective-C}}
Copy file name to clipboardExpand all lines: test/ClangImporter/objc_override.swift
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -84,8 +84,8 @@ class SomeCellSub5 : SomeCell {
84
84
}
85
85
86
86
classFailSub:FailBase{
87
-
overrideinit(value:Int){try! super.init(value: value)} // expected-error {{overriding a throwing @objc initializer with a non-throwing initializer is not supported}}
88
-
overrideclassfunc processValue(){} // expected-error {{overriding a throwing @objc method with a non-throwing method is not supported}}
87
+
overrideinit(value:Int){try! super.init(value: value)} // expected-error {{overriding a throwing '@objc' initializer with a non-throwing initializer is not supported}}
88
+
overrideclassfunc processValue(){} // expected-error {{overriding a throwing '@objc' method with a non-throwing method is not supported}}
Copy file name to clipboardExpand all lines: test/ClangImporter/objc_parse.swift
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -648,24 +648,24 @@ class NewtypeUser {
648
648
@objcfunc stringNewtype(a:SNTErrorDomain){} // expected-error {{'SNTErrorDomain' has been renamed to 'ErrorDomain'}}{{31-45=ErrorDomain}}
649
649
@objcfunc stringNewtypeOptional(a:SNTErrorDomain?){} // expected-error {{'SNTErrorDomain' has been renamed to 'ErrorDomain'}}{{39-53=ErrorDomain}}
650
650
@objcfunc intNewtype(a:MyInt){}
651
-
@objcfunc intNewtypeOptional(a:MyInt?){} // expected-error {{method cannot be marked @objc because the type of the parameter cannot be represented in Objective-C}}
652
-
@objcfunc intNewtypeArray(a:[MyInt]){} // expected-error {{method cannot be marked @objc because the type of the parameter cannot be represented in Objective-C}}
651
+
@objcfunc intNewtypeOptional(a:MyInt?){} // expected-error {{method cannot be marked '@objc' because the type of the parameter cannot be represented in Objective-C}}
652
+
@objcfunc intNewtypeArray(a:[MyInt]){} // expected-error {{method cannot be marked '@objc' because the type of the parameter cannot be represented in Objective-C}}
653
653
// expected-note@-1 {{Swift structs cannot be represented in Objective-C}}
654
-
@objcfunc intNewtypeDictionary(a:[MyInt:NSObject]){} // expected-error {{method cannot be marked @objc because the type of the parameter cannot be represented in Objective-C}}
654
+
@objcfunc intNewtypeDictionary(a:[MyInt:NSObject]){} // expected-error {{method cannot be marked '@objc' because the type of the parameter cannot be represented in Objective-C}}
655
655
// expected-note@-1 {{Swift structs cannot be represented in Objective-C}}
656
656
@objcfunc cfNewtype(a:CFNewType){}
657
-
@objcfunc cfNewtypeArray(a:[CFNewType]){} // expected-error {{method cannot be marked @objc because the type of the parameter cannot be represented in Objective-C}}
657
+
@objcfunc cfNewtypeArray(a:[CFNewType]){} // expected-error {{method cannot be marked '@objc' because the type of the parameter cannot be represented in Objective-C}}
658
658
// expected-note@-1 {{Swift structs cannot be represented in Objective-C}}
Copy file name to clipboardExpand all lines: test/ClangImporter/objc_runtime_visible.swift
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
import ObjCRuntimeVisible
4
4
5
5
extensionA{
6
-
@objcfunc foo(){} // expected-error{{instance method cannot be marked @objc because class 'A' is only visible via the Objective-C runtime}}
6
+
@objcfunc foo(){} // expected-error{{instance method cannot be marked '@objc' because class 'A' is only visible via the Objective-C runtime}}
7
7
func bar(){} // okay, implicitly non-objc
8
8
}
9
9
@@ -16,5 +16,5 @@ class B : A { } // expected-error{{cannot inherit from class 'A' because it is o
16
16
protocolSwiftProto{}
17
17
@objcprotocolObjCProto{}
18
18
19
-
extensionA:ObjCProto{} // expected-error {{class 'A' cannot conform to @objc protocol 'ObjCProto' because the class is only visible via the Objective-C runtime}}
19
+
extensionA:ObjCProto{} // expected-error {{class 'A' cannot conform to '@objc' protocol 'ObjCProto' because the class is only visible via the Objective-C runtime}}
0 commit comments