FIR CFG: ignore exception edges when looking for return values

^KT-54668 Fixed
This commit is contained in:
pyos
2022-11-28 11:14:07 +01:00
committed by teamcity
parent 664a70ec13
commit 9f4cfa2c50
5 changed files with 17 additions and 12 deletions
@@ -7,8 +7,8 @@ interface A {
fun getA(): A? = null
val x by <!DELEGATE_SPECIAL_FUNCTION_NONE_APPLICABLE, NEW_INFERENCE_ERROR!>lazy {
val x by lazy {
(getA() ?: error("error")).list.associateBy {
it
}
}<!>
}