Files
kotlin/compiler/testData/codegen/box/jvmName/callableReference.kt
2019-11-19 11:00:09 +03:00

15 lines
205 B
Kotlin
Vendored

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