Support extension lambda inlining in complex stack cases (nullable receiver)

This commit is contained in:
Michael Bogdanov
2016-02-08 13:17:01 +03:00
parent 78b7fb15f3
commit b8ee2ecdac
6 changed files with 101 additions and 52 deletions
@@ -0,0 +1,5 @@
import test.*
fun box(): String? {
return processRecords("O") { this + "K" }
}
@@ -0,0 +1,5 @@
package test
inline fun foo(x: String) = x
inline fun processRecords(s: String?, block: String.(String) -> String) = s?.block(foo("O"))