Files
kotlin-fork/compiler/testData/codegen/box/functions/localFunctions/kt4514.kt
T
2019-11-19 11:00:09 +03:00

10 lines
246 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
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()
}