FIR: introduce parameter type is Throwable check
This commit is contained in:
committed by
Mikhail Glukhikh
parent
5c0231b727
commit
9ad88a5a0d
Vendored
+2
-2
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user