FIR: replace ConeKotlinType with more concrete type when possible

This commit is contained in:
Mikhail Glukhikh
2021-12-14 14:36:19 +03:00
committed by TeamCityServer
parent 27d4c745cb
commit 11bbd79c4b
8 changed files with 12 additions and 26 deletions
@@ -139,7 +139,7 @@ internal class KClassValue(value: Value) : ConstantValue<KClassValue.Value>(valu
is Value.NormalClass -> {
val (classId, arrayDimensions) = value.value
val klass = session.symbolProvider.getClassLikeSymbolByClassId(classId)?.fir as? FirRegularClass ?: return null
var type: ConeKotlinType = klass.defaultType().replaceArgumentsWithStarProjections()
var type: ConeClassLikeType = klass.defaultType().replaceArgumentsWithStarProjections()
repeat(arrayDimensions) {
type = type.createArrayType()
}