KT-16666 IMPLICIT_INTEGER_COERCION expression should have non-nullable type
This commit is contained in:
+1
-1
@@ -184,7 +184,7 @@ class InsertImplicitCasts(val builtIns: KotlinBuiltIns): IrElementTransformerVoi
|
||||
KotlinTypeChecker.DEFAULT.isSubtypeOf(valueType.makeNotNullable(), expectedType) ->
|
||||
this
|
||||
KotlinBuiltIns.isInt(valueType) && notNullableExpectedType.isBuiltInIntegerType() ->
|
||||
IrTypeOperatorCallImpl(startOffset, endOffset, expectedType,
|
||||
IrTypeOperatorCallImpl(startOffset, endOffset, notNullableExpectedType,
|
||||
IrTypeOperator.IMPLICIT_INTEGER_COERCION, notNullableExpectedType, this)
|
||||
else ->
|
||||
IrTypeOperatorCallImpl(startOffset, endOffset, expectedType,
|
||||
|
||||
Reference in New Issue
Block a user