FIR CFG: route to exit of try main for throw in try main

to make the remaining part of try main marked as dead.

^KT-45475 Fixed
This commit is contained in:
Jinseong Jeon
2021-03-16 00:45:43 -07:00
committed by TeamCityServer
parent 7a7114f896
commit 922419efb8
5 changed files with 228 additions and 6 deletions
@@ -40,7 +40,7 @@ fun conditionalThrowInTry_smartcastInTry(a: A) {
if (a !is B) {
throw AssertionError()
}
<!INAPPLICABLE_CANDIDATE!>takeB<!>(a)
takeB(a)
} catch (e: Throwable) {}
}