Simplify implementation of TypeSystemCommonSuperTypesContext.typeDepth
This commit is contained in:
@@ -217,8 +217,6 @@ interface IrTypeSystemContext : TypeSystemInferenceExtensionContext {
|
||||
|
||||
override fun SimpleTypeMarker.typeDepth() = 2
|
||||
|
||||
override fun KotlinTypeMarker.typeDepth() = if (this is IrStarProjection) 1 else 0
|
||||
|
||||
override fun findCommonIntegerLiteralTypesSuperType(explicitSupertypes: List<SimpleTypeMarker>): SimpleTypeMarker? =
|
||||
irBuiltIns.intType as IrSimpleType
|
||||
|
||||
|
||||
Reference in New Issue
Block a user