backend: fix tailRecursion/defaultArgsOverridden.kt

This commit is contained in:
Svyatoslav Scherbina
2017-03-06 15:41:29 +07:00
committed by SvyatoslavScherbina
parent ac757e1285
commit fe55e1f0e2
@@ -63,4 +63,4 @@ internal fun IrMemberAccessExpression.addArguments(args: List<Pair<ParameterDesc
internal fun IrExpression.isNullConst() = this is IrConst<*> && this.kind == IrConstKind.Null
fun IrCall.usesDefaultArguments(): Boolean =
this.descriptor.valueParameters.any { this.getValueArgument(it) != null }
this.descriptor.valueParameters.any { this.getValueArgument(it) == null }