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 ab75459 commit 29d29c1Copy full SHA for 29d29c1
test/Interpreter/Inputs/objc_implementation.h
@@ -0,0 +1,7 @@
1
+#import <Foundation/Foundation.h>
2
+
3
+@interface ImplClass : NSObject
4
5
+- (nonnull NSString *)someMethod;
6
7
+@end
test/Interpreter/objc_implementation.swift
@@ -0,0 +1,12 @@
+// RUN: %target-run-simple-swift(-import-objc-header %S/Inputs/objc_implementation.h) %s | %FileCheck %s
+// REQUIRES: executable_test
+// REQUIRES: objc_interop
+import Foundation
+@_objcImplementation extension ImplClass {
8
+ @objc func someMethod() -> String { "ImplClass.someMethod()" }
9
+}
10
11
+print(ImplClass().someMethod())
12
+// CHECK: ImplClass.someMethod()
0 commit comments