Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
b32f408767cf86efaa65eb02699fe00bd61d99a6
/
.
/
compiler
/
testData
/
codegen
/
box
/
jvmName
/
functionWithDefault.kt
blob: 0a07c43b1d2f604b65b7a0fd3759517f113366e6 [
file
]
// TARGET_BACKEND: JVM
// WITH_STDLIB
@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"
}