mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
24 lines
315 B
Kotlin
Vendored
24 lines
315 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
|
|
}
|
|
|
|
{
|
|
foo("O")
|
|
foo(foo, 1)
|
|
}()
|
|
}
|
|
|
|
test()
|
|
|
|
return s
|
|
} |