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

24 lines
317 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
}
run {
foo("O")
foo(foo, 1)
}
}
test()
return s
}