Enable NoSourceCodeInNotNullAssertionExceptions since 1.9

#KT-57570 Fixed
This commit is contained in:
Alexander Udalov
2023-05-22 15:52:49 +02:00
committed by Space Team
parent ad1dfd5cb9
commit a4121fa8f3
4 changed files with 5 additions and 12 deletions
@@ -1,5 +1,4 @@
// IGNORE_BACKEND_K2_LIGHT_TREE: JVM_IR
// Reason: KT-56756
// TARGET_BACKEND: JVM_IR
// FILE: j/J.java
package j;
@@ -21,6 +20,6 @@ fun test() {
}
// @KKt.class:
// 1 LDC "a"
// 0 LDC "a"
// 0 checkExpressionValueIsNotNull
// 1 checkNotNullExpressionValue
// 1 checkNotNull
@@ -20,4 +20,4 @@ fun test() {
}
// @KKt.class:
// 1 checkNotNullExpressionValue
// 1 checkNotNull
@@ -4542,12 +4542,6 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/expressionValueIsNotNullAfterExclExcl.kt");
}
@Test
@TestMetadata("expressionValueIsNotNullTwice.kt")
public void testExpressionValueIsNotNullTwice() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/expressionValueIsNotNullTwice.kt");
}
@Test
@TestMetadata("ifNullEqualsNull.kt")
public void testIfNullEqualsNull() throws Exception {
@@ -276,6 +276,7 @@ enum class LanguageFeature(
NativeJsProhibitLateinitIsInitializedIntrinsicWithoutPrivateAccess(KOTLIN_1_9, kind = BUG_FIX), // KT-27002
TakeIntoAccountEffectivelyFinalInMustBeInitializedCheck(KOTLIN_1_9, kind = OTHER), // KT-58587
ProhibitUsingNullableTypeParameterAgainstNotNullAnnotated(sinceVersion = KOTLIN_1_9), // KT-36770
NoSourceCodeInNotNullAssertionExceptions(KOTLIN_1_9, sinceApiVersion = ApiVersion.KOTLIN_1_4, kind = OTHER), // KT-57570
// End of 1.* language features --------------------------------------------------
@@ -346,7 +347,6 @@ enum class LanguageFeature(
ImplicitSignedToUnsignedIntegerConversion(sinceVersion = null), // KT-56583
ForbidInferringTypeVariablesIntoEmptyIntersection(sinceVersion = null, kind = BUG_FIX), // KT-51221
IntrinsicConstEvaluation(sinceVersion = null, kind = UNSTABLE_FEATURE), // KT-49303
NoSourceCodeInNotNullAssertionExceptions(sinceVersion = null, sinceApiVersion = ApiVersion.KOTLIN_1_4, kind = OTHER), // KT-57570
DisableCheckingChangedProgressionsResolve(sinceVersion = null, kind = OTHER), // KT-49276
;