Files
kotlin-fork/compiler/testData/codegen/box/functions/localFunctions/overloadedLocalFunction1.kt
T
2018-06-09 19:15:38 +03:00

24 lines
312 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_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
}