FIR: fix findClassRepresentation for dynamic type
related to KT-53463 and KT-53464 needed e.g. to find proper (fake) override on calls on dynamic receiver fixes test js/js.translator/testData/box/dynamic/equals.kt
This commit is contained in:
@@ -118,6 +118,7 @@ fun ConeKotlinType.findClassRepresentation(
|
|||||||
): ConeClassLikeLookupTag? =
|
): ConeClassLikeLookupTag? =
|
||||||
when (this) {
|
when (this) {
|
||||||
is ConeClassLikeType -> this.fullyExpandedType(session).lookupTag
|
is ConeClassLikeType -> this.fullyExpandedType(session).lookupTag
|
||||||
|
is ConeDynamicType -> upperBound.findClassRepresentation(dispatchReceiverParameterType, session)
|
||||||
is ConeFlexibleType -> lowerBound.findClassRepresentation(dispatchReceiverParameterType, session)
|
is ConeFlexibleType -> lowerBound.findClassRepresentation(dispatchReceiverParameterType, session)
|
||||||
is ConeCapturedType -> constructor.supertypes.orEmpty()
|
is ConeCapturedType -> constructor.supertypes.orEmpty()
|
||||||
.findClassRepresentationThatIsSubtypeOf(dispatchReceiverParameterType, session)
|
.findClassRepresentationThatIsSubtypeOf(dispatchReceiverParameterType, session)
|
||||||
|
|||||||
Reference in New Issue
Block a user