https://kotlinlang.org logo
#android
Title
# android
d

dan.the.man

09/01/2020, 4:54 PM
Is this how Kotlin translates these to static jvm methods, it doesn't use the typed
List<T>
?
c

Casey Brooks

09/01/2020, 5:01 PM
At runtime, the list type is erased and both functions look like
fun Adfactory.makeList(ad: List)
. You can keep them named the same and differentiated within Kotlin source while solving this problem on the JVM side by using
@JvmName
annotations
d

dan.the.man

09/01/2020, 7:42 PM
Thanks!
3 Views