FIR CFG: ignore exception edges when looking for return values
^KT-54668 Fixed
This commit is contained in:
Vendored
+1
-1
@@ -15,5 +15,5 @@ FILE: lazyValWithElvisToNothingInside.kt
|
||||
}
|
||||
)
|
||||
public get(): R|kotlin/collections/Map<kotlin/String, kotlin/String>| {
|
||||
^ D|/x|.<CS errors: kotlin/getValue>#<R|kotlin/collections/Map<kotlin/String, kotlin/String>|>(Null(null), ::R|/x|)
|
||||
^ D|/x|.R|kotlin/getValue|<R|kotlin/collections/Map<kotlin/String, kotlin/String>|>(Null(null), ::R|/x|)
|
||||
}
|
||||
|
||||
+2
-2
@@ -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
|
||||
}
|
||||
}<!>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user