Files
kotlin-fork/compiler/testData/codegen/box/functions/localFunctions/kt4514.kt
T
2014-03-31 20:04:10 +04:00

9 lines
216 B
Kotlin

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()
}