FIR: introduce separate THROWABLE_TYPE_MISMATCH

This commit is contained in:
Mikhail Glukhikh
2021-05-18 12:59:00 +03:00
parent f0ce311fc6
commit e85d97b894
10 changed files with 92 additions and 40 deletions
@@ -109,7 +109,7 @@ fun t7() : Int {
return 1
2
}
catch (<!TYPE_MISMATCH!>e : Any<!>) {
catch (<!THROWABLE_TYPE_MISMATCH!>e : Any<!>) {
2
}
return 1 // this is OK, like in Java
@@ -120,7 +120,7 @@ fun t8() : Int {
return 1
2
}
catch (<!TYPE_MISMATCH!>e : Any<!>) {
catch (<!THROWABLE_TYPE_MISMATCH!>e : Any<!>) {
return 1
2
}