IR: make stub marker parameter for constructors nullable

In constructor stubs for default arguments, a marker parameter used
to have a non-null type, but null was passed as the corresponding
argument. This patch corrects the type.
This commit is contained in:
Georgy Bronnikov
2019-10-17 15:32:18 +03:00
parent 35e2c9eb59
commit 9c8e8651be
@@ -442,7 +442,7 @@ private fun IrFunction.generateDefaultsFunctionImpl(
syntheticParameters += newFunction.valueParameter(
syntheticParameters.last().index + 1,
kConstructorMarkerName,
context.ir.symbols.defaultConstructorMarker.owner.defaultType
context.ir.symbols.defaultConstructorMarker.owner.defaultType.makeNullable()
)
} else if (context.ir.shouldGenerateHandlerParameterForDefaultBodyFun()) {
syntheticParameters += newFunction.valueParameter(