Is there a suggestion to deal with the java type e...
# announcements
i
Is there a suggestion to deal with the java type erasure from kotlin, i tried to use inline function and encounter the similar issue mentioned at https://youtrack.jetbrains.net/issue/KT-24888#tab=Linked%20Issues.
s
Kotlin is interoperable with Java so it can’t fix type erasure for the general case. It actually has an improvement in the case of inline-functions: reified type parameters: https://kotlinlang.org/docs/reference/inline-functions.html#reified-type-parameters