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)
|
||||
|
||||
@@ -23,7 +23,6 @@ interface DefinitelyNotNullTypeMarker : SimpleTypeMarker
|
||||
|
||||
interface FlexibleTypeMarker : KotlinTypeMarker
|
||||
interface DynamicTypeMarker : FlexibleTypeMarker
|
||||
interface RawTypeMarker : FlexibleTypeMarker
|
||||
interface StubTypeMarker : SimpleTypeMarker
|
||||
|
||||
interface TypeArgumentListMarker
|
||||
|
||||
@@ -16,6 +16,4 @@
|
||||
|
||||
package org.jetbrains.kotlin.types
|
||||
|
||||
import org.jetbrains.kotlin.types.model.RawTypeMarker
|
||||
|
||||
interface RawType : RawTypeMarker
|
||||
interface RawType
|
||||
|
||||
Reference in New Issue
Block a user