New J2K: consider empty/singleton children list when comparing trees in default arguments conversion

This commit is contained in:
Ilya Kirillov
2019-09-24 12:49:22 +03:00
parent 704b3bd2e6
commit 509fcb17c7
@@ -145,11 +145,11 @@ class DefaultArgumentsConversion(context: NewJ2kConverterContext) : RecursiveApp
child1 as JKElement,
child2 as JKElement
)
}.reduce(Boolean::and)
}.fold(true, Boolean::and)
}
else -> false
}
}.reduce(Boolean::and)
}.fold(true, Boolean::and)
} else false
}