Fix compiler errors in compiler detected after enabling @OnlyInputTypes in NI

This commit is contained in:
Dmitriy Novozhilov
2019-05-29 00:00:32 +03:00
parent e574106799
commit bd87332b0c
5 changed files with 9 additions and 5 deletions
@@ -427,7 +427,7 @@ class StateMachineBuilder(
private fun transformArguments(arguments: Array<IrExpression?>): Array<IrExpression?> {
var suspendableCount = arguments.fold(0) { r, n -> if (n in suspendableNodes) r + 1 else r }
var suspendableCount = arguments.fold(0) { r, n -> if (n != null && n in suspendableNodes) r + 1 else r }
val newArguments = arrayOfNulls<IrExpression>(arguments.size)