[FIR] Introduce helper method ConeKotlinType.fullyExpandedClassId

This commit is contained in:
Kirill Rakhman
2023-09-13 17:36:22 +02:00
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
}