[Test] Add test for KT-42995
This commit is contained in:
committed by
Space Team
parent
a35b3bfd17
commit
eb041d5d6d
+15
@@ -0,0 +1,15 @@
|
||||
// ISSUE: KT-42995
|
||||
|
||||
fun test() {
|
||||
val a: Int
|
||||
try {
|
||||
run {
|
||||
a = 1
|
||||
a.inc()
|
||||
throw Exception("hmm")
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
a = 2
|
||||
a.inc()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user