FIR DFA: correct exit node retrieval when a safe call is the last expression

^KT-44699 Fixed
This commit is contained in:
Jinseong Jeon
2021-02-04 12:08:25 -08:00
committed by Dmitriy Novozhilov
parent 266432a482
commit 83e3201677
6 changed files with 14 additions and 29 deletions
@@ -1,23 +0,0 @@
// !WITH_NEW_INFERENCE
interface ClassId
interface JavaAnnotation {
val classId: ClassId?
}
interface JavaAnnotationOwner {
val annotations: Collection<JavaAnnotation>
}
interface MapBasedJavaAnnotationOwner : JavaAnnotationOwner {
val annotationsByFqNameHash: Map<Int?, JavaAnnotation>
}
fun JavaAnnotationOwner.buildLazyValueForMap() = lazy {
annotations.associateBy { it.classId?.hashCode() }
}
abstract class BinaryJavaMethodBase(): MapBasedJavaAnnotationOwner {
override val <!PROPERTY_TYPE_MISMATCH_ON_OVERRIDE!>annotationsByFqNameHash<!> by buildLazyValueForMap()
}
@@ -1,3 +1,5 @@
// FIR_IDENTICAL
interface ClassId
interface JavaAnnotation {