Grab constructor call type parameters from its class, not from the contructor

This commit is contained in:
Alexander Gorshenev
2019-04-01 17:48:46 +03:00
committed by alexander-gorshenev
parent e082522cdf
commit 4332ce9884
@@ -236,7 +236,7 @@ open class DefaultParameterInjector(
type = context.irBuiltIns.unitType,
symbol = symbolForCall as IrConstructorSymbol,
descriptor = symbolForCall.descriptor,
typeArgumentsCount = symbolForCall.owner.typeParameters.size
typeArgumentsCount = expression.typeArgumentsCount
)
.apply {
copyTypeArgumentsFrom(expression)