[FE 1.0] Correctly set USED_AS_EXPRESSION for unreachable catch clauses
^KT-48806 Fixed
This commit is contained in:
committed by
teamcityserver
parent
9ca8d39240
commit
bfeb9c219d
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user