fix assertion

This commit is contained in:
Dmitry Jemerov
2011-04-07 14:45:49 +02:00
parent df0a2fb62f
commit 68d3c7a64f
@@ -342,7 +342,10 @@ public class ExpressionCodegen extends JetVisitor {
method.getName(), method.getName(),
getMethodDescriptor(method)); getMethodDescriptor(method));
} }
myStack.push(StackValue.onStack(psiTypeToAsm(method.getReturnType()))); final Type type = psiTypeToAsm(method.getReturnType());
if (type != Type.VOID_TYPE) {
myStack.push(StackValue.onStack(type));
}
} }
} }
else { else {