FIR DFA: correct exit node retrieval when a safe call is the last expression
^KT-44699 Fixed
This commit is contained in:
committed by
Dmitriy Novozhilov
parent
266432a482
commit
83e3201677
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user