JVM: remove support for disabling NoConstantValueAttributeForNonConstVals

This feature is enabled by default since 1.4, which is the earliest
language version supported by Kotlin at this moment.
This commit is contained in:
Alexander Udalov
2021-09-10 02:01:10 +02:00
parent d07070e184
commit e857966edb
22 changed files with 20 additions and 202 deletions
+1 -3
View File
@@ -1,7 +1,5 @@
// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: MINOR: CONST_EQUIVALENCE
// !LANGUAGE: -NoConstantValueAttributeForNonConstVals
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: NATIVE
object A {
@@ -33,4 +31,4 @@ fun box(): String {
if (A.bNullable !== B.bNullable) return "Fail 5: A.bNullable !== B.bNullable"
return "OK"
}
}
@@ -1,4 +1,3 @@
// !LANGUAGE: +NoConstantValueAttributeForNonConstVals
// TARGET_BACKEND: JVM
// WITH_RUNTIME
@@ -1,4 +1,3 @@
// !LANGUAGE: +NoConstantValueAttributeForNonConstVals +JvmFieldInInterface
// TARGET_BACKEND: JVM
// WITH_RUNTIME
@@ -64,4 +63,4 @@ fun box(): String {
assertEquals(400, testTopLevelVal)
return "OK"
}
}