Drop a part of compileTimeConstants.kt that is not serializable in K2
Basically `val a = 10; val b = a + 20` will not be serialized for `b` property because `a` is not constant
This commit is contained in:
-8
@@ -1,5 +1,3 @@
|
||||
// MUTED_WHEN: K2
|
||||
// `val b = a + 20` will not be serialized in K2
|
||||
package test
|
||||
|
||||
enum class Weapon {
|
||||
@@ -20,9 +18,6 @@ val doubleConst: Double = 3.0
|
||||
val enumConst: Weapon? = Weapon.ROCK
|
||||
val arrayConst: Any = byteArrayOf(1,2)
|
||||
|
||||
val a = 10
|
||||
val b = a + 20
|
||||
|
||||
class Class {
|
||||
val byteConst: Byte = 10
|
||||
val shortConst: Short = 20
|
||||
@@ -35,7 +30,4 @@ class Class {
|
||||
val doubleConst: Double = 3.0
|
||||
val enumConst: Weapon? = Weapon.ROCK
|
||||
val arrayConst: Any = byteArrayOf(1,2)
|
||||
val a = 10
|
||||
val b = a + 20
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user