7d59c7689c
Due to the direct invoke optimization, most callable reference tests were not generating callable references/lambdas.
14 lines
155 B
Kotlin
Vendored
14 lines
155 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
|
|
// WITH_STDLIB
|
|
// FILE: u1.kt
|
|
|
|
object O {
|
|
@JvmStatic
|
|
fun foo() = "OK"
|
|
}
|
|
|
|
// FILE: u2.kt
|
|
|
|
fun box() = (O::foo).let { it() }
|