Sign in
◑
Theme
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
21de67cac1bef9259daa407b68a12e178923aef3
/
.
/
compiler
/
testData
/
codegen
/
box
/
classes
/
classObjectAsStaticInitializer.kt
blob: d9175424f8e69cdf78f783fd6b93dbdaa7c8b9e7 [
file
]
var
global
=
0
;
class
C
{
companion
object
{
init
{
global
=
1
;
}
}
}
fun box
():
String
{
if
(
global
!=
0
)
{
return
"fail1: global = $global"
}
val c
=
C
()
if
(
global
==
1
)
return
"OK"
else
return
"fail2: global = $global"
}