diff --git a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/VarargLowering.kt b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/VarargLowering.kt index 5836951c01a..c93d8d1e00e 100644 --- a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/VarargLowering.kt +++ b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/VarargLowering.kt @@ -119,7 +119,7 @@ private class VarargTransformer( for (e in expression.elements) { when (e) { is IrSpreadElement -> { - if (!currentList.isEmpty()) { + if (currentList.isNotEmpty()) { segments.add(arrayInfo.toPrimitiveArrayLiteral(currentList)) currentList.clear() } @@ -131,7 +131,7 @@ private class VarargTransformer( } } } - if (!currentList.isEmpty()) { + if (currentList.isNotEmpty()) { segments.add(arrayInfo.toPrimitiveArrayLiteral(currentList)) currentList.clear() } @@ -207,7 +207,7 @@ private class VarargTransformer( if (argument == null && varargElementType != null) { val arrayInfo = InlineClassArrayInfo(varargElementType, parameter.type) val emptyArray = with (arrayInfo) { - boxArrayIfNeeded(toPrimitiveArrayLiteral(emptyList())) + boxArrayIfNeeded(toPrimitiveArrayLiteral(emptyList())) } expression.putValueArgument(i, emptyArray)