FIR: Add correct Any? supertype for stub types

This commit is contained in:
Simon Ogorodnik
2021-11-15 18:00:43 +03:00
committed by teamcity
parent 0d81e14904
commit 19a9091966
@@ -272,7 +272,7 @@ interface ConeTypeContext : TypeSystemContext, TypeSystemOptimizationContext, Ty
override fun TypeConstructorMarker.supertypes(): Collection<ConeKotlinType> {
if (this is ErrorTypeConstructor) return emptyList()
return when (this) {
is ConeStubTypeConstructor -> emptyList()
is ConeStubTypeConstructor -> listOf(session.builtinTypes.nullableAnyType.type)
is ConeTypeVariableTypeConstructor -> emptyList()
is ConeTypeParameterLookupTag -> symbol.fir.bounds.map { it.coneType }
is ConeClassLikeLookupTag -> {