Files
kotlin/compiler/testData/codegen/boxInline/callableReference/propertyReference.kt
2016-09-07 12:01:49 +03:00

17 lines
242 B
Kotlin
Vendored

// 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)
}