Files
kotlin-fork/compiler/testData/codegen/boxInline/jvmName/simple.kt
T
Alexander Udalov bf3f6594d5 IR: do not lose $default function annotations when generating calls
Losing an annotation like `JvmName` resulted in the incorrect bytecode
generated in the JVM IR backend.

 #KT-44160 Fixed
2020-12-31 18:36:24 +01:00

12 lines
175 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// WITH_RUNTIME
// FILE: 1.kt
package test
@JvmName("jvmName")
inline fun f(s: String = "OK"): String = s
// FILE: 2.kt
fun box(): String = test.f()