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

18 lines
268 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// FILE: 1.kt
package test
class Foo(val a: String)
inline fun <T> test(receiver: T, selector: (T) -> String): String {
return selector(receiver)
}
// FILE: 2.kt
import test.*
fun box(): String {
return test(Foo("OK"), Foo::a)
}