[FIR] Introduce helper method ConeKotlinType.fullyExpandedClassId
This commit is contained in:
committed by
Space Team
parent
93958ec73d
commit
b72ac4f560
@@ -825,3 +825,7 @@ fun ConeKotlinType.leastUpperBound(session: FirSession): ConeKotlinType {
|
||||
val upperBounds = collectUpperBounds().takeIf { it.isNotEmpty() } ?: return session.builtinTypes.nullableAnyType.type
|
||||
return ConeTypeIntersector.intersectTypes(session.typeContext, upperBounds)
|
||||
}
|
||||
|
||||
fun ConeKotlinType.fullyExpandedClassId(session: FirSession): ClassId? {
|
||||
return fullyExpandedType(session).classId
|
||||
}
|
||||
Reference in New Issue
Block a user