Moving local fun callee generation to CallReceiver

This commit is contained in:
Mikhael Bogdanov
2014-03-31 15:53:00 +04:00
parent 7dc662f613
commit 0d239a3e0e
6 changed files with 82 additions and 11 deletions
@@ -0,0 +1,9 @@
fun box(): String {
fun String.f() = this
val vf: String.() -> String = { this }
val localExt = "O".f() + "K"?.f()
if (localExt != "OK") return "localExt $localExt"
return "O".vf() + "K"?.vf()
}