Minor: Remove dead conditional in psi2ir
This commit is contained in:
committed by
Alexander Udalov
parent
ce3ef4e4d0
commit
7ccf314808
-3
@@ -245,9 +245,6 @@ open class InsertImplicitCasts(
|
||||
KotlinBuiltIns.isInt(valueType) && notNullableExpectedType.isBuiltInIntegerType() ->
|
||||
implicitCast(notNullableExpectedType, IrTypeOperator.IMPLICIT_INTEGER_COERCION)
|
||||
|
||||
KotlinTypeChecker.DEFAULT.isSubtypeOf(valueType, expectedType) ->
|
||||
this
|
||||
|
||||
else -> {
|
||||
val targetType = if (!valueType.containsNull()) notNullableExpectedType else expectedType
|
||||
implicitCast(targetType, IrTypeOperator.IMPLICIT_CAST)
|
||||
|
||||
Reference in New Issue
Block a user