[FIR] Minor. Cleanup code in ConeTypes.kt

This commit is contained in:
Dmitriy Novozhilov
2019-07-25 11:24:14 +03:00
committed by Mikhail Glukhikh
parent a226e40e34
commit 3c7b25b8c9
@@ -109,8 +109,6 @@ abstract class ConeTypeParameterType : ConeLookupTagBasedType() {
abstract override val lookupTag: ConeTypeParameterLookupTag abstract override val lookupTag: ConeTypeParameterLookupTag
} }
data class ConeFlexibleType(val lowerBound: ConeKotlinType, val upperBound: ConeKotlinType) : ConeKotlinType(), data class ConeFlexibleType(val lowerBound: ConeKotlinType, val upperBound: ConeKotlinType) : ConeKotlinType(),
FlexibleTypeMarker { FlexibleTypeMarker {
@@ -130,10 +128,10 @@ data class ConeFlexibleType(val lowerBound: ConeKotlinType, val upperBound: Cone
fun ConeKotlinType.upperBoundIfFlexible() = (this as? ConeFlexibleType)?.upperBound ?: this fun ConeKotlinType.upperBoundIfFlexible() = (this as? ConeFlexibleType)?.upperBound ?: this
fun ConeKotlinType.lowerBoundIfFlexible() = (this as? ConeFlexibleType)?.lowerBound ?: this fun ConeKotlinType.lowerBoundIfFlexible() = (this as? ConeFlexibleType)?.lowerBound ?: this
class ConeCapturedTypeConstructor(val projection: ConeKotlinTypeProjection, var supertypes: List<ConeKotlinType>? = null) : class ConeCapturedTypeConstructor(
TypeConstructorMarker { val projection: ConeKotlinTypeProjection,
var supertypes: List<ConeKotlinType>? = null
} ) : TypeConstructorMarker
class ConeCapturedType( class ConeCapturedType(
val captureStatus: CaptureStatus, val captureStatus: CaptureStatus,