Olenyov Kirill
01/29/2020, 9:46 AMdata class MyTestDataClass(val ppp: Int, val ttt: List<Int>)
But in obj-c it looks like:
CommonMyTestDataClass : KotlinBase
- (instancetype)initWithPpp:(int32_t)ppp ttt:(NSArray<CommonInt *> *)ttt
So different types: int32_t and CommonInt
WTF?Artyom Degtyarev [JB]
01/30/2020, 12:37 PMOlenyov Kirill
01/30/2020, 12:50 PMArtyom Degtyarev [JB]
01/30/2020, 1:20 PMOlenyov Kirill
01/30/2020, 1:23 PMArtyom Degtyarev [JB]
01/30/2020, 3:08 PMNSNumber
. Also, there is a note on boxes mapping, explaining your case. As a List
in your example should be exported NSArray
, it has to use NSNumber
subclass. In Objective-C, one cannot make NSArray of primitive types.Olenyov Kirill
01/30/2020, 3:12 PM