Files
kotlin/compiler/testData/codegen/boxInline/callableReference/bound/objectProperty.kt
2018-06-28 12:26:41 +02:00

20 lines
232 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// FILE: 1.kt
package test
object Foo {
val a: String = "OK"
}
inline fun test(s: () -> String): String {
return s()
}
// FILE: 2.kt
import test.*
fun box(): String {
return test(Foo::a)
}