FIR: introduce parameter type is Throwable check

This commit is contained in:
eugenpolytechnic
2021-01-31 17:37:11 +03:00
committed by Mikhail Glukhikh
parent 5c0231b727
commit 9ad88a5a0d
5 changed files with 67 additions and 16 deletions
@@ -109,7 +109,7 @@ fun t7() : Int {
return 1
2
}
catch (e : Any) {
catch (<!TYPE_MISMATCH!>e : Any<!>) {
2
}
return 1 // this is OK, like in Java
@@ -120,7 +120,7 @@ fun t8() : Int {
return 1
2
}
catch (e : Any) {
catch (<!TYPE_MISMATCH!>e : Any<!>) {
return 1
2
}