Revert "JVM: remove support for disabling NoConstantValueAttributeForNonConstVals"
This is a partial revert of e857966edb.
Specifically, behavior is restored in the old backend, which will allow
to support language version 1.3, where this language feature was not
enabled yet. There are no changes in the JVM IR backend, because to
enable JVM IR with LV 1.3, you need to pass the compiler argument
`-Xuse-ir` which is not stable and we don't guarantee anything about it.
#KT-50251
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
// !LANGUAGE: -NoConstantValueAttributeForNonConstVals
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
//ALLOW_AST_ACCESS
|
||||
|
||||
package test
|
||||
val nonConstVal1 = 1
|
||||
|
||||
class C {
|
||||
val nonConstVal2 = 2
|
||||
|
||||
companion object {
|
||||
val nonConstVal3 = 3
|
||||
}
|
||||
}
|
||||
|
||||
interface I {
|
||||
companion object {
|
||||
val nonConstVal4 = 4
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user