Files
kotlin/compiler/testData/codegen/box/jvmName/callableReference.kt
2016-11-09 21:41:12 +03:00

15 lines
247 B
Kotlin
Vendored

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// WITH_RUNTIME
@JvmName("bar")
fun foo() = "foo"
fun box(): String {
val f = (::foo)()
if (f != "foo") return "Fail: $f"
return "OK"
}