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

14 lines
175 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// WITH_RUNTIME
@JvmName("bar")
fun foo() = "foo"
fun box(): String {
val f = (::foo)()
if (f != "foo") return "Fail: $f"
return "OK"
}