Grab constructor call type parameters from its class, not from the contructor
This commit is contained in:
committed by
alexander-gorshenev
parent
e082522cdf
commit
4332ce9884
+1
-1
@@ -236,7 +236,7 @@ open class DefaultParameterInjector(
|
|||||||
type = context.irBuiltIns.unitType,
|
type = context.irBuiltIns.unitType,
|
||||||
symbol = symbolForCall as IrConstructorSymbol,
|
symbol = symbolForCall as IrConstructorSymbol,
|
||||||
descriptor = symbolForCall.descriptor,
|
descriptor = symbolForCall.descriptor,
|
||||||
typeArgumentsCount = symbolForCall.owner.typeParameters.size
|
typeArgumentsCount = expression.typeArgumentsCount
|
||||||
)
|
)
|
||||||
.apply {
|
.apply {
|
||||||
copyTypeArgumentsFrom(expression)
|
copyTypeArgumentsFrom(expression)
|
||||||
|
|||||||
Reference in New Issue
Block a user