7d59c7689c
Due to the direct invoke optimization, most callable reference tests were not generating callable references/lambdas.
14 lines
185 B
Kotlin
Vendored
14 lines
185 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
|
|
// WITH_STDLIB
|
|
|
|
@JvmName("bar")
|
|
fun foo() = "foo"
|
|
|
|
fun box(): String {
|
|
val f = (::foo).let { it() }
|
|
if (f != "foo") return "Fail: $f"
|
|
|
|
return "OK"
|
|
}
|