Drop RawTypeMarker as it's effectively unused anymore
See the previous commits
This commit is contained in:
committed by
Space Team
parent
608cb01935
commit
a3dcc2032f
@@ -184,7 +184,7 @@ data class ConeDefinitelyNotNullType(val original: ConeSimpleKotlinType) : ConeS
|
||||
class ConeRawType private constructor(
|
||||
lowerBound: ConeSimpleKotlinType,
|
||||
upperBound: ConeSimpleKotlinType
|
||||
) : ConeFlexibleType(lowerBound, upperBound), RawTypeMarker {
|
||||
) : ConeFlexibleType(lowerBound, upperBound) {
|
||||
companion object {
|
||||
fun create(
|
||||
lowerBound: ConeSimpleKotlinType,
|
||||
|
||||
+1
-1
@@ -143,7 +143,7 @@ abstract class AbstractTypeApproximator(
|
||||
|
||||
val lowerResult = approximateTo(lowerBound, conf, depth)
|
||||
|
||||
val upperResult = if (type !is RawTypeMarker && lowerBound.typeConstructor() == upperBound.typeConstructor())
|
||||
val upperResult = if (!type.isRawType() && lowerBound.typeConstructor() == upperBound.typeConstructor())
|
||||
lowerResult?.withNullability(upperBound.isMarkedNullable())
|
||||
else
|
||||
approximateTo(upperBound, conf, depth)
|
||||
|
||||
Reference in New Issue
Block a user