diff --git a/compiler/backend/src/org/jetbrains/jet/codegen/ExpressionCodegen.java b/compiler/backend/src/org/jetbrains/jet/codegen/ExpressionCodegen.java index 386e0977fe8..73822f4d96d 100644 --- a/compiler/backend/src/org/jetbrains/jet/codegen/ExpressionCodegen.java +++ b/compiler/backend/src/org/jetbrains/jet/codegen/ExpressionCodegen.java @@ -1911,22 +1911,22 @@ public class ExpressionCodegen extends JetVisitor implem } private StackValue genSamInterfaceValue( - @NotNull JetExpression argumentExpression, + @NotNull JetExpression expression, @NotNull ClassDescriptorFromJvmBytecode samInterface, @NotNull JetVisitor visitor ) { - if (argumentExpression instanceof JetFunctionLiteralExpression) { - return genClosure(((JetFunctionLiteralExpression) argumentExpression).getFunctionLiteral(), samInterface); + if (expression instanceof JetFunctionLiteralExpression) { + return genClosure(((JetFunctionLiteralExpression) expression).getFunctionLiteral(), samInterface); } else { JvmClassName className = - state.getSamWrapperClasses().getSamWrapperClass(samInterface, (JetFile) argumentExpression.getContainingFile()); + state.getSamWrapperClasses().getSamWrapperClass(samInterface, (JetFile) expression.getContainingFile()); v.anew(className.getAsmType()); v.dup(); Type functionType = typeMapper.mapType(samInterface.getFunctionTypeForSamInterface()); - argumentExpression.accept(visitor, StackValue.none()).put(functionType, v); + expression.accept(visitor, StackValue.none()).put(functionType, v); v.invokespecial(className.getInternalName(), "", Type.getMethodDescriptor(Type.VOID_TYPE, functionType)); return StackValue.onStack(className.getAsmType());