https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
p

pardom

03/08/2019, 2:52 PM
Hey, all. I’m getting a
kotlin.TypeCastException
that I’m hoping you all can help with. In order to get around generics and casting issues in K/N, I’ve quarantined a call to a generic function to the common Kotlin code in an mpp project: https://github.com/pardom/oolong/pull/16/files#diff-b6307a0524635d6d8940c58b27823806R48. This fixes the compiler errors in Swift, however it fails at runtime due to casting. Any ideas why?
o

olonho

03/08/2019, 5:06 PM
Not enough info here, unfortunately. Maybe you could create minimal reproduce and file an issue.
p

pardom

03/08/2019, 5:06 PM
I filed an issue here which links to a reproducible example: https://github.com/JetBrains/kotlin-native/issues/2752
3 Views