FIR IDE: fix access to unresolved type parameter
This commit is contained in:
committed by
TeamCityServer
parent
ffbf2ea1a5
commit
e12479dd89
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user