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
@@ -12,7 +12,7 @@ fun box(): String {
val a: Any? = null
a as Array<String>
}
catch (e: TypeCastException) {
catch (e: NullPointerException) {
if (e.message != "null cannot be cast to non-null type kotlin.Array<kotlin.String>") {
return "Fail 1: $e"
}
@@ -22,7 +22,7 @@ fun box(): String {
val x: String? = null
x as String
}
catch (e: TypeCastException) {
catch (e: NullPointerException) {
if (e.message != "null cannot be cast to non-null type kotlin.String") {
return "Fail 2: $e"
}