Revert "[K2/N] KT-56190 Serialize simple const property initializers"

This reverts commit 2ace8ba9bd.
This commit is contained in:
Vladimir Sukharev
2023-03-29 18:00:09 +02:00
parent 8380a1ed54
commit 639b0cc525
7 changed files with 15 additions and 36 deletions
@@ -1,7 +1,5 @@
// KT-56190: the following properties miss their initializers: arrayConst, b, enumConst
// KT-56190 K2 does not emit const initializers
// MUTED_WHEN: K2
// IGNORE_BACKEND_K2
package test
enum class Weapon {
@@ -1,3 +1,5 @@
// KT-56190 K2 does not emit const initializers
// MUTED_WHEN: K2
package test
class ClassA {
@@ -16,9 +18,7 @@ class ClassA {
inner class classC {
val memberFromC: Int = 200
}
}
class E {
companion object {
val stat: Int = 250
@@ -26,9 +26,7 @@ class E {
val memberFromD: Int = 275
}
}
}
class F {
object ObjA {
val memberFromObjA: Int = 300
}
@@ -1,4 +1,13 @@
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() {
@@ -11,17 +20,4 @@
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
}
}
@@ -1,3 +1,5 @@
// KT-56190 K2 does not emit const initializers
// MUTED_WHEN: K2
package test
annotation class Anno(val value: String)