Christopher Mederos
11/20/2023, 6:49 AMfun getUser(userId: Int) {}
However, when I try to use this function in swift, I'm getting a type error -
Cannot convert value of type 'Int?' to expected argument type 'KotlinInt?'
Presumably I'm missing a step or config here? I'd assume that KMP magic handles the Int implementation in each platform without me having to write any additional mapping?Pablichjenkov
11/20/2023, 1:47 PMChristopher Mederos
11/26/2023, 11:52 PMextension Int {
/// converts this Integer to KotlinInt
func toKotlinInt() -> KotlinInt {
return KotlinInt(integerLiteral: self)
}
}