Files
kotlin-fork/compiler/testData/codegen/box/jvmName/functionWithDefault.kt
T

12 lines
228 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// WITH_RUNTIME
@JvmName("bar")
fun foo(x: String = (object {}).javaClass.enclosingMethod.name) = x
fun box(): String {
val f = foo()
if (f != "bar\$default") return "Fail: $f"
return "OK"
}