Compilation Exception - remove duplicated this on stack

#KT-3114 Fixed
This commit is contained in:
Mikhael Bogdanov
2013-02-11 15:15:22 +04:00
parent c7e512a38a
commit c61c8d7fa0
3 changed files with 21 additions and 2 deletions
@@ -2484,16 +2484,17 @@ public class ExpressionCodegen extends JetVisitor<StackValue, StackValue> implem
JetExpression left = expression.getLeft();
JetExpression right = expression.getRight();
StackValue receiver = gen(left);
Callable callable = resolveToCallable(descriptor, false);
Type type;
if (callable instanceof IntrinsicMethod) {
// Compare two primitive values
type = comparisonOperandType(expressionType(left), expressionType(right));
StackValue receiver = gen(left);
receiver.put(type, v);
gen(right, type);
} else {
}
else {
type = Type.INT_TYPE;
StackValue result = invokeOperation(expression, descriptor, (CallableMethod) callable);
result.put(type, v);