blob: acceda4b1dc2a58044c76cd78a9fcf430e98da02 [file]
// 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"
}