Files
kotlin/compiler/testData/codegen/box/functions/localFunctions/overloadedLocalFunction2.kt
2018-06-28 12:26:41 +02:00

24 lines
311 B
Kotlin
Vendored

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