diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/types/ConeTypeContext.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/types/ConeTypeContext.kt index accffb84522..13c1c324e04 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/types/ConeTypeContext.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/types/ConeTypeContext.kt @@ -130,11 +130,11 @@ interface ConeTypeContext : TypeSystemContext, TypeSystemOptimizationContext, Ty override fun SimpleTypeMarker.typeConstructor(): TypeConstructorMarker { return when (this) { - is ConeCapturedType -> constructor - is ConeTypeVariableType -> lookupTag as ConeTypeVariableTypeConstructor // TODO: WTF is ConeClassLikeType -> lookupTag.toSymbol(session) ?: ErrorTypeConstructor("Unresolved: $lookupTag") - is ConeLookupTagBasedType -> lookupTag.toSymbol(session) ?: ErrorTypeConstructor("Unresolved: $lookupTag") + is ConeTypeParameterType -> lookupTag.typeParameterSymbol + is ConeCapturedType -> constructor + is ConeTypeVariableType -> lookupTag as ConeTypeVariableTypeConstructor // TODO: WTF is ConeIntersectionType -> this is ConeStubType -> variable.typeConstructor is ConeDefinitelyNotNullType -> original.typeConstructor()