Support bound function reference inlining

This commit is contained in:
Michael Bogdanov
2016-06-28 15:13:25 +03:00
parent 439431e923
commit e0d525b72a
15 changed files with 383 additions and 21 deletions
@@ -0,0 +1,17 @@
// FILE: 1.kt
package test
inline fun foo(x: () -> String, z: String) = x() + z
fun String.id() = this
// FILE: 2.kt
import test.*
fun box() : String {
var zeroSlot = "fail";
val z = "O"
return foo(z::id, "K")
}