[FIR] Add missing type-alias unwrap in CompletionModeCalculator
This commit is contained in:
committed by
Mikhail Glukhikh
parent
8e890eba3e
commit
ed07e1c778
+4
-3
@@ -125,11 +125,12 @@ private class CalculatorForNestedCall(
|
|||||||
type: KotlinTypeMarker, outerVariance: TypeVariance,
|
type: KotlinTypeMarker, outerVariance: TypeVariance,
|
||||||
fixationDirectionsCollector: MutableSet<FixationDirectionForVariable>
|
fixationDirectionsCollector: MutableSet<FixationDirectionForVariable>
|
||||||
) {
|
) {
|
||||||
val typeArgumentsCount = type.argumentsCount()
|
val unwrappedType = type.lowerBoundIfFlexible()
|
||||||
|
val typeArgumentsCount = unwrappedType.argumentsCount()
|
||||||
if (typeArgumentsCount > 0) {
|
if (typeArgumentsCount > 0) {
|
||||||
for (position in 0 until typeArgumentsCount) {
|
for (position in 0 until typeArgumentsCount) {
|
||||||
val argument = type.getArgument(position)
|
val argument = unwrappedType.getArgument(position)
|
||||||
val parameter = type.typeConstructor().getParameter(position)
|
val parameter = unwrappedType.typeConstructor().getParameter(position)
|
||||||
|
|
||||||
if (argument.isStarProjection())
|
if (argument.isStarProjection())
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user