I don’t know whether this channel or <#C3PQML5NU|m...
# kotlin-native
y
I don’t know whether this channel or #multiplatform is the best place to ask this: Has anyone dealt with using a kotlin class that uses generics in an iOS project? Here is my kotlin class:
Copy code
class TestGenerics<T> {
    fun <T>test(type: T) {       }
}
And here is the objective C interface :
Copy code
__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?
o
Yes, generally generics are unsupported, we only support them in collections interop