Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1018)

Unified Diff: test/ios/swift/MyObjcClass.m

Issue 1160773005: Support for Swift language and Clang modules for ninja generator. Base URL: https://chromium.googlesource.com/external/gyp@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/ios/swift/MyObjcClass.m
diff --git a/test/ios/swift/MyObjcClass.m b/test/ios/swift/MyObjcClass.m
new file mode 100644
index 0000000000000000000000000000000000000000..ca4fbe98e53d59e55f98f6133fc4fbbe5b68bf9e
--- /dev/null
+++ b/test/ios/swift/MyObjcClass.m
@@ -0,0 +1,21 @@
+#import "MyObjcClass.h"
+
+@import swift_framework;
+
+@interface MyObjcClass ()
+@property(nonatomic, strong) MySwiftFrameworkClass* f;
+@property(nonatomic, strong) MyObjcFrameworkClass* o;
+@end
+
+@implementation MyObjcClass
+
+- (instancetype)init {
+ self = [super init];
+ if (self) {
+ self.f = [[MySwiftFrameworkClass alloc] init];
+ self.o = [[MyObjcFrameworkClass alloc] init];
+ }
+ return self;
+}
+
+@end

Powered by Google App Engine
This is Rietveld 408576698