We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3afddfa commit 841b583Copy full SHA for 841b583
test/decl/func/typed_throws.swift
@@ -220,5 +220,9 @@ func badThrowingFunctionType<T>(_: () throws(NotAnError<T>) -> ()) {}
220
enum ObjCError: Int, Error {
221
case Others
222
}
223
-@objc func objcTypedThrow() throws(ObjCError) -> () {}
224
-// expected-error@-1 {{@objc functions cannot have typed throw}}
+
+import Foundation
225
+@objc class ObjCClass: NSObject {
226
+ @objc func objcTypedThrow() throws(ObjCError) -> () {}
227
+ // expected-error@-1 {{@objc functions cannot have typed throw}}
228
+}
0 commit comments