Hey, all. I’m getting a `kotlin.TypeCastException`...
# multiplatform
p
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
Not enough info here, unfortunately. Maybe you could create minimal reproduce and file an issue.
p
I filed an issue here which links to a reproducible example: https://github.com/JetBrains/kotlin-native/issues/2752