Simplify implementation of TypeSystemCommonSuperTypesContext.typeDepth

This commit is contained in:
Alexander Udalov
2019-06-26 23:44:26 +02:00
parent 331f0291ce
commit cf6ff8c6b3
4 changed files with 14 additions and 42 deletions
@@ -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