13 lines
258 B
Kotlin
Vendored
13 lines
258 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// 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"
|
|
}
|