Files
kotlin/compiler/testData/codegen/box/functions/localFunctions/overloadedLocalFunction1.kt
2018-08-15 13:35:14 +03:00

23 lines
287 B
Kotlin
Vendored

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
}