Files
kotlin-fork/compiler/testData/codegen/box/functions/localFunctions/kt4514.kt
T
2018-08-09 14:22:50 +03:00

9 lines
216 B
Kotlin
Vendored

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