mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
* make it able to detect shared vars under any declaration kind, not only IrFunction * Add & update tests
10 lines
151 B
Kotlin
Vendored
10 lines
151 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
fun box() : String {
|
|
var a = 1
|
|
|
|
object {
|
|
val t = run { a++ }
|
|
}
|
|
return if (a == 2) "OK" else "fail"
|
|
}
|