[FIR JS] Fix ConeDynamicType in asPsiType

This commit is contained in:
Nikolay Lunyak
2022-04-04 13:33:23 +03:00
committed by teamcity
parent d7e8dc65f5
commit c8ef427421
@@ -89,6 +89,9 @@ private fun ConeKotlinType.simplifyType(
do {
val oldType = currentType
currentType = currentType.fullyExpandedType(session)
if (currentType is ConeDynamicType) {
return currentType
}
currentType = currentType.upperBoundIfFlexible()
currentType = substitutor.substituteOrSelf(currentType)
val needLocalTypeApproximation = needLocalTypeApproximation(visibilityForApproximation, isInlineFunction, session, useSitePosition)