Fix codegen & bytecode tests after unifying exceptions in JVM backend

See KT-22275 for details
This commit is contained in:
Mikhail Zarechenskiy
2020-01-20 13:51:11 +03:00
parent 1ed7e33f42
commit 5c5635ce20
34 changed files with 55 additions and 55 deletions
@@ -14,8 +14,8 @@ fun asNullablePrimitive(c: AsNonNullPrimitive?) {}
fun asNullableReference(c: AsNonNullReference?) {}
// JVM_TEMPLATES
// 6 checkParameterIsNotNull
// 0 checkNotNullParameter
// 0 checkParameterIsNotNull
// 6 checkNotNullParameter
// JVM_IR_TEMPLATES
// 4 checkParameterIsNotNull
@@ -8,7 +8,7 @@ fun foo(): Any {
fun bar(a: ArrayList<String>) {
}
// 1 checkExpressionValueIsNotNull
// 0 checkNotNullExpressionValue
// 1 checkParameterIsNotNull
// 0 checkNotNullParameter
// 0 checkExpressionValueIsNotNull
// 1 checkNotNullExpressionValue
// 0 checkParameterIsNotNull
// 1 checkNotNullParameter
@@ -6,5 +6,5 @@ public fun <R : Any> foo(x: MutableCollection<in R>, block: java.util.AbstractLi
x.add(block.get(0))
}
// 1 checkExpressionValueIsNotNull
// 0 checkNotNullExpressionValue
// 0 checkExpressionValueIsNotNull
// 1 checkNotNullExpressionValue
@@ -1,4 +1,4 @@
fun <T : Any> foo(t: T) = t
// 1 checkParameterIsNotNull
// 0 checkNotNullParameter
// 0 checkParameterIsNotNull
// 1 checkNotNullParameter
@@ -32,7 +32,7 @@ internal fun bar(a: A<String, Int>, b: B<String>, c: C) {
}
// @JavaMultipleSubstitutionsKt.class
// 3 checkExpressionValueIsNotNull
// 0 checkNotNullExpressionValue
// 3 checkParameterIsNotNull
// 0 checkNotNullParameter
// 0 checkExpressionValueIsNotNull
// 3 checkNotNullExpressionValue
// 0 checkParameterIsNotNull
// 3 checkNotNullParameter
@@ -21,5 +21,5 @@ fun test() {
// @KKt.class:
// 1 LDC "a"
// 1 checkExpressionValueIsNotNull
// 0 checkNotNullExpressionValue
// 0 checkExpressionValueIsNotNull
// 1 checkNotNullExpressionValue