Join Slack
Powered by
Is there a suggestion to deal with the java type e...
# announcements
i
iammini5
07/31/2019, 9:26 PM
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
Stephan Schroeder
08/01/2019, 9:46 AM
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
5
Views
Open in Slack
Previous
Next