generate correct bytecode for constructors using infix call syntax
#KT-4589 Fixed
This commit is contained in:
@@ -2912,6 +2912,10 @@ public class ExpressionCodegen extends JetVisitor<StackValue, StackValue> implem
|
||||
ResolvedCall<?> resolvedCall = getResolvedCallWithAssert(expression, bindingContext);
|
||||
FunctionDescriptor descriptor = (FunctionDescriptor) resolvedCall.getResultingDescriptor();
|
||||
|
||||
if (descriptor instanceof ConstructorDescriptor) {
|
||||
return generateConstructorCall(resolvedCall, expressionType(expression));
|
||||
}
|
||||
|
||||
Callable callable = resolveToCallable(descriptor, false);
|
||||
if (callable instanceof IntrinsicMethod) {
|
||||
Type returnType = typeMapper.mapType(descriptor);
|
||||
|
||||
Reference in New Issue
Block a user