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,15 @@
// FILE: 1.kt
package test
inline fun call(p: String, s: String.() -> Int): Int {
return p.s()
}
// FILE: 2.kt
import test.*
fun box() : String {
return if (call("123", String::length) == 3) "OK" else "fail"
}