JVM_IR: fix type arguments in inline callable references

This commit is contained in:
Georgy Bronnikov
2019-12-31 17:11:04 +03:00
parent a67df82b1e
commit d81231fdf7
@@ -172,9 +172,9 @@ internal class InlineCallableReferenceToLambdaPhase(val context: JvmBackendConte
+IrFunctionReferenceImpl( +IrFunctionReferenceImpl(
expression.startOffset, expression.startOffset,
expression.endOffset, expression.endOffset,
referencedFunction.returnType, function.returnType,
function.symbol, function.symbol,
referencedFunction.typeParameters.size, function.typeParameters.size,
IrStatementOrigin.LAMBDA IrStatementOrigin.LAMBDA
).apply { ).apply {
copyAttributes(expression) copyAttributes(expression)