From d3be0462b6ccb7f7c63c08a58d20501f43f05a8f Mon Sep 17 00:00:00 2001 From: Dmitry Petrov Date: Tue, 24 Mar 2020 20:03:38 +0300 Subject: [PATCH] Fix callable reference to inline class constructor generation --- .../kotlin/codegen/FunctionReferenceGenerationStrategy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/backend/src/org/jetbrains/kotlin/codegen/FunctionReferenceGenerationStrategy.java b/compiler/backend/src/org/jetbrains/kotlin/codegen/FunctionReferenceGenerationStrategy.java index 953e1e66dfb..9c6486f6c2e 100644 --- a/compiler/backend/src/org/jetbrains/kotlin/codegen/FunctionReferenceGenerationStrategy.java +++ b/compiler/backend/src/org/jetbrains/kotlin/codegen/FunctionReferenceGenerationStrategy.java @@ -190,7 +190,7 @@ public class FunctionReferenceGenerationStrategy extends FunctionGenerationStrat } else { //noinspection ConstantConditions - Type constructedType = codegen.typeMapper.mapTypeAsDeclaration(referencedFunction.getReturnType()); + Type constructedType = codegen.typeMapper.mapType(referencedFunction.getReturnType()); result = codegen.generateConstructorCall(fakeResolvedCall, constructedType); } }