[FE 1.0] Correctly set USED_AS_EXPRESSION for unreachable catch clauses

^KT-48806 Fixed
This commit is contained in:
Dmitriy Novozhilov
2021-09-17 13:40:14 +03:00
committed by teamcityserver
parent 9ca8d39240
commit bfeb9c219d
10 changed files with 197 additions and 1 deletions
+16
View File
@@ -0,0 +1,16 @@
// ISSUE: KT-48806
class A {
val test_1: Int = try{
throw RuntimeException()
} catch(e: Exception) {
1
}
val test_2: Int = try{
1
} catch(e: Exception) {
throw RuntimeException()
}
}