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

19 lines
215 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
fun box(): String {
var s = ""
fun foo(x: String) {
s += x
}
fun foo() {
foo("K")
}
run {
foo("O")
foo()
}
return s
}