256317da15
* make it able to detect shared vars under any declaration kind, not only IrFunction * Add & update tests
11 lines
140 B
Kotlin
Vendored
11 lines
140 B
Kotlin
Vendored
fun box() : String {
|
|
var a = 1
|
|
|
|
object {
|
|
init {
|
|
a = 2
|
|
}
|
|
}
|
|
return if (a == 2) "OK" else "fail"
|
|
}
|