yusuf3000
03/08/2018, 9:13 AMclass TestGenerics<T> {
fun <T>test(type: T) { }
}
And here is the objective C interface :
__attribute__((objc_subclassing_restricted))
@interface CMETestGenerics : KotlinBase
-(instancetype)init NS_SWIFT_NAME(init()) NS_DESIGNATED_INITIALIZER;
-(void)testType:(id _Nullable)type NS_SWIFT_NAME(test(type:));
@end;
As you can see there is no longer any generics once imported into objective C. Does anybody know a solution this? Or a workaround?olonho
03/08/2018, 8:07 PM