FIR IDE: fix access to unresolved type parameter

This commit is contained in:
Ilya Kirillov
2021-11-22 16:31:27 +01:00
committed by TeamCityServer
parent ffbf2ea1a5
commit e12479dd89
@@ -254,7 +254,7 @@ class ConeTypeSystemCommonBackendContextForTypeMapping(
override fun TypeParameterMarker.representativeUpperBound(): ConeKotlinType {
require(this is ConeTypeParameterLookupTag)
val bounds = this.typeParameterSymbol.fir.bounds.map { it.coneType }
val bounds = this.typeParameterSymbol.resolvedBounds.map { it.coneType }
return bounds.firstOrNull {
val classSymbol = it.safeAs<ConeClassLikeType>()?.fullyExpandedType(session)
?.lookupTag?.toSymbol(session) as? FirRegularClassSymbol ?: return@firstOrNull false