Joakim Tengstrand
06/26/2020, 12:14 PMdiesieben07
06/26/2020, 12:15 PMkotlin.String
is a fictional type, it becomes java.lang.String
when compiling for the JVM.
https://kotlinlang.org/docs/reference/java-interop.html#mapped-typesJoakim Tengstrand
06/26/2020, 12:17 PMpackage jocke.polylith.kotlin
public fun hello(value: kotlin.String): kotlin.Unit { /* compiled code */ }
public fun helloval(value: <http://kotlin.Int|kotlin.Int>): kotlin.Unit { /* compiled code */ }
public fun main(args: kotlin.Array<kotlin.String>): kotlin.Unit { /* compiled code */ }
When I decompiled the class file, it doesn't seem so.diesieben07
06/26/2020, 12:17 PMJoakim Tengstrand
06/26/2020, 12:18 PMdiesieben07
06/26/2020, 12:19 PMTools > Kotlin > Show Kotlin Bytecode
diesieben07
06/26/2020, 12:19 PMTools > Kotlin > Decompile Kotlin to Java
Joakim Tengstrand
06/26/2020, 12:26 PMJoakim Tengstrand
06/26/2020, 1:13 PM