mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
Fix for KT-9692: Deadlock between <clinit> of a class (KtSimpleNameExpressionImpl) and <clinit> of its companion object #KT-9692 Fixed
18 lines
255 B
Kotlin
Vendored
18 lines
255 B
Kotlin
Vendored
const val CONST_VAL = 1
|
|
|
|
object A {
|
|
const val CONST_VAL = 2
|
|
}
|
|
|
|
class B {
|
|
companion object {
|
|
const val CONST_VAL = 2
|
|
}
|
|
}
|
|
|
|
/*
|
|
Two DEPRECATED are for INSTANCE$ and INSTANCE temporarily
|
|
3 others are for getCONST_VAL
|
|
*/
|
|
|
|
// 5 DEPRECATED |