Hello folks.
I have the following expect function
expect fun String.formatPlatform(vararg args: Any?): String
and on iosMain module I wrote the actual function
actual fun String.formatPlatform(vararg args: Any?): String {
return NSString.create(format = this, args = arrayOf(args)).toString()
}
But when I compile that code I get this error :
kotlin.Array<out kotlin.Any?> is not supported here: doesn't correspond to any C type
I tried to change the parameter type from expect function to Float or Double, but the error continues:
kotlin.Array<out kotlin.Float?> is not supported here: doesn't correspond to any C type
I read the issue
https://github.com/JetBrains/kotlin-native/issues/1834 but I do not solve the problem. Can anyone help me with that? Thank you.