Add FIR test for KT-35565

This commit is contained in:
Mikhail Glukhikh
2021-10-21 12:52:04 +03:00
committed by TeamCityServer
parent 5deb96f679
commit 1fe7a1ebb3
5 changed files with 47 additions and 0 deletions
@@ -0,0 +1,16 @@
FILE: errorsInUnreachable.kt
public final fun case(): R|kotlin/String| {
lval x0: R|kotlin/Boolean| = Boolean(false)
lval x1: R|kotlin/String|
lval x: R|kotlin/Boolean|
try {
R|<local>/x0| = throw R|java/lang/Exception.Exception|() || Boolean(true)
R|<local>/x|.R|kotlin/Boolean.not|()
lval a: R|kotlin/Int| = R|<local>/x1|.R|kotlin/text/toInt|()
}
catch (e: R|kotlin/Exception|) {
^case String(OK)
}
^case String(NOK)
}