e7dc199ad7
Fixes https://youtrack.jetbrains.com/issue/KT-43987 Fixes https://youtrack.jetbrains.com/issue/KT-43989
19 lines
256 B
Kotlin
Vendored
19 lines
256 B
Kotlin
Vendored
// IGNORE_BACKEND: JS
|
|
|
|
var l = ""
|
|
enum class Foo {
|
|
F;
|
|
init {
|
|
l += "Foo;"
|
|
}
|
|
object L {
|
|
init {
|
|
l += "Foo.CO;"
|
|
}
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
Foo.L
|
|
return if (l != "Foo.CO;") "FAIL: ${l}" else "OK"
|
|
} |