[FIR] Fix incorrect work of K2 expect-actual matcher when actual is Java

...field, which is fake override.
This was failing in Stdlib with `expect HashMap` + actual typealias to
`java.util.HashMap`.

^KT-63624 Fixed
This commit is contained in:
Roman Efremov
2024-01-16 18:24:24 +01:00
committed by Space Team
parent 3d2a37ee41
commit ee1ee965a1
5 changed files with 4 additions and 31 deletions
@@ -437,7 +437,7 @@ class FirExpectActualMatchingContextImpl private constructor(
get() = asSymbol().rawStatus.hasStableParameterNames
override val CallableSymbolMarker.isJavaField: Boolean
get() = this is FirFieldSymbol && fir.isJava
get() = this is FirFieldSymbol && this.fir.unwrapFakeOverrides().isJava
override val DeclarationSymbolMarker.annotations: List<AnnotationCallInfo>
get() = asSymbol().resolvedAnnotationsWithArguments.map(::AnnotationCallInfoImpl)