Support extension lambda inlining in complex stack cases (nullable receiver)
This commit is contained in:
@@ -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"))
|
||||
Reference in New Issue
Block a user