Sign in
◑
Theme
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
699829ccb3e80dbb53c10cccdf1e50f06a5c5346
/
.
/
compiler
/
testData
/
codegen
/
box
/
jvmName
/
functionWithDefault.kt
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"
}