Join Slack
Powered by
hi there <https://kotlinlang.org/docs/reference/na...
# kotlin-native
m
marchuck
02/12/2019, 10:34 AM
hi there
https://kotlinlang.org/docs/reference/native/objc_interop.html
doc says Unit should be mapped into Void in Swift but when I am using closures in kotlin like
(String)-> Unit
it messes in Swift files into
KotlinUnit
object. Can I deal with this in more elegant way?
g
gildor
02/12/2019, 10:36 AM
Not sure about Swift, but you cannot do this even in JVM, because Kotlin Function interface is generic, and it cannot be just replaced with Void
j
Jonas Bark
02/12/2019, 11:08 AM
has the same question a while ago:
https://kotlinlang.slack.com/archives/C3SGXARS6/p1542103964298200
5
Views
Open in Slack
Previous
Next