KMM - Optional types on Swift
Hello everyone!
I wanted to report a problem (take it as a suggestion of improvement) about Kotlin optionals in Swift.
Let’s take the example of a Kotlin Long. If I write a method taking one as a parameter, I have a native conversion to Int64:
fun test(param: Long) {}
Is mapped to
func test(param: Int64) {}
And so I can call it by passing a Int64 directly, or when I implement an Kotlin interface from Swift handle it as an Int64.
But now, let’s take the same example with an optional (so...