JVM IR: Fix vararg handling in DefaultParameterInjector

This commit is contained in:
Steven Schäfer
2019-08-05 13:16:20 +02:00
committed by max-kammerer
parent 1543accf40
commit d22814f6da
@@ -20,6 +20,9 @@ class JvmDefaultParameterInjector(context: JvmBackendContext) :
override val context: JvmBackendContext get() = super.context as JvmBackendContext
override fun nullConst(startOffset: Int, endOffset: Int, irParameter: IrValueParameter): IrExpression? =
nullConst(startOffset, endOffset, irParameter.type)
override fun nullConst(startOffset: Int, endOffset: Int, type: IrType): IrExpression {
if (type !is IrSimpleType || type.hasQuestionMark || type.classOrNull?.owner?.isInline != true)
return super.nullConst(startOffset, endOffset, type)