[K2] Properly serialize constant values

#KT-56190 Fixed
This commit is contained in:
Ivan Kylchik
2023-03-31 23:36:16 +02:00
committed by Space Team
parent ac480e2285
commit 8499891756
14 changed files with 135 additions and 44 deletions
@@ -1,13 +1,4 @@
class ClassA constructor() {
companion object {
val stat: Int = 250
class D constructor() {
val memberFromD: Int = 275
}
}
object ObjA {
val memberFromObjA: Int = 300
}
class classB constructor() {
fun memberFromB(): Int
class BC constructor() {
@@ -20,4 +11,17 @@
inner class classC constructor() {
val memberFromC: Int = 200
}
}
class E constructor() {
companion object {
val stat: Int = 250
class D constructor() {
val memberFromD: Int = 275
}
}
}
class F constructor() {
object ObjA {
val memberFromObjA: Int = 300
}
}