Generate widening cast for Byte and Short to Int
This commit is contained in:
-3
@@ -388,9 +388,6 @@ class OperatorExpressionGenerator(statementGenerator: StatementGenerator) : Stat
|
||||
operandType == targetType || operandNNType == targetType ->
|
||||
this
|
||||
|
||||
targetType.isInt() && (operandNNType.isShort() || operandNNType.isByte()) ->
|
||||
this
|
||||
|
||||
// TODO: don't rely on originalKotlinType.
|
||||
type.originalKotlinType!!.containsNull() ->
|
||||
safeCallOnDispatchReceiver(this@OperatorExpressionGenerator, startOffset, endOffset) { dispatchReceiver ->
|
||||
|
||||
Reference in New Issue
Block a user