[FIR JS] Fix ConeDynamicType in asPsiType
This commit is contained in:
+3
@@ -89,6 +89,9 @@ private fun ConeKotlinType.simplifyType(
|
|||||||
do {
|
do {
|
||||||
val oldType = currentType
|
val oldType = currentType
|
||||||
currentType = currentType.fullyExpandedType(session)
|
currentType = currentType.fullyExpandedType(session)
|
||||||
|
if (currentType is ConeDynamicType) {
|
||||||
|
return currentType
|
||||||
|
}
|
||||||
currentType = currentType.upperBoundIfFlexible()
|
currentType = currentType.upperBoundIfFlexible()
|
||||||
currentType = substitutor.substituteOrSelf(currentType)
|
currentType = substitutor.substituteOrSelf(currentType)
|
||||||
val needLocalTypeApproximation = needLocalTypeApproximation(visibilityForApproximation, isInlineFunction, session, useSitePosition)
|
val needLocalTypeApproximation = needLocalTypeApproximation(visibilityForApproximation, isInlineFunction, session, useSitePosition)
|
||||||
|
|||||||
Reference in New Issue
Block a user