Function literal expression outside the parentheses wrapped into JetFunctionLiteralArgument
Extracted JetFunctionLiteralArgument.moveInsideParenthesesAndReplaceWith util function
This commit is contained in:
@@ -3314,7 +3314,6 @@ public class ExpressionCodegen extends JetVisitor<StackValue, StackValue> implem
|
||||
for (ValueArgument va : expression.getValueArguments()) {
|
||||
args.add(va.getArgumentExpression());
|
||||
}
|
||||
args.addAll(expression.getFunctionLiteralArguments());
|
||||
|
||||
boolean isArray = KotlinBuiltIns.getInstance().isArray(arrayType);
|
||||
if (!isArray && args.size() != 1) {
|
||||
|
||||
Reference in New Issue
Block a user