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

24 lines
315 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
fun box(): String {
var s = ""
var foo = "K"
fun foo(x: String, y: Int) {
s += x
}
fun test() {
fun foo(x: String) {
s += x
}
{
foo("O")
foo(foo, 1)
}()
}
test()
return s
}