FIR: Support special scope for raw types
^KT-46369 Fixed ^KT-41794 Fixed ^KT-49351 Fixed
This commit is contained in:
committed by
Space Team
parent
1215ae0fe7
commit
5cc31114cd
@@ -123,7 +123,7 @@ private fun JavaType?.toConeTypeProjection(
|
||||
else -> lowerBound
|
||||
}
|
||||
|
||||
if (isRaw) ConeRawType(finalLowerBound, upperBound) else ConeFlexibleType(finalLowerBound, upperBound)
|
||||
if (isRaw) ConeRawType.create(finalLowerBound, upperBound) else ConeFlexibleType(finalLowerBound, upperBound)
|
||||
}
|
||||
|
||||
is JavaArrayType -> {
|
||||
|
||||
@@ -50,7 +50,7 @@ private fun ConeKotlinType.enhanceConeKotlinType(
|
||||
|
||||
when {
|
||||
lowerResult == null && upperResult == null -> null
|
||||
this is ConeRawType -> ConeRawType(lowerResult ?: lowerBound, upperResult ?: upperBound)
|
||||
this is ConeRawType -> ConeRawType.create(lowerResult ?: lowerBound, upperResult ?: upperBound)
|
||||
else -> coneFlexibleOrSimpleType(session.typeContext, lowerResult ?: lowerBound, upperResult ?: upperBound)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user