FIR: Add correct Any? supertype for stub types
This commit is contained in:
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 -> {
|
||||
|
||||
Reference in New Issue
Block a user