Copy type parameter to function reference

This fixes callable references to inline class with generic underlying
value constructor.
 #KT-32162
This commit is contained in:
Ilmir Usmanov
2021-12-30 20:53:22 +01:00
parent 9bdbbb44cf
commit 71729ec43c
@@ -304,7 +304,7 @@ private class JvmInlineClassLowering(private val context: JvmBackendContext) : F
return IrFunctionReferenceImpl(
expression.startOffset, expression.endOffset, expression.type,
replacement.symbol, replacement.typeParameters.size,
replacement.symbol, function.typeParameters.size,
replacement.valueParameters.size, expression.reflectionTarget, expression.origin
).apply {
buildReplacement(function, expression, replacement)