dmaclach
(Dave MacLachlan)
1
I am attempting to import the following ObjC code:
@protocol Bar
@end
@interface Foo : NSObject
@end
typedef Foo<Bar> FooBar;
and what I would like is to have typedef Foo<Bar> FooBar map to something like typealias FooBar = Foo & Bar. I cannot seem to convince the importer to do this. Is there some magic I am missing?
AdamCmiel
(Adam Cmiel)
2
@dmaclach
typedef Foo<Bar> *FooBar;
FooBar someCFunction(void);
add the * and this will bridge as a typealias and be available for autocomplete.