Support for property reference inlining

This commit is contained in:
Michael Bogdanov
2016-08-18 13:59:03 +03:00
parent 237afb4b7c
commit 7230965e62
18 changed files with 338 additions and 47 deletions
@@ -0,0 +1,17 @@
// 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)
}