Commit feefccc1 authored by Mark Florisson's avatar Mark Florisson

Empty closure body on error

parent 63492533
...@@ -1474,12 +1474,12 @@ if VALUE is not None: ...@@ -1474,12 +1474,12 @@ if VALUE is not None:
error(node.pos, "Cannot nest fused functions") error(node.pos, "Cannot nest fused functions")
self.fused_error_funcs.add(self.fused_function) self.fused_error_funcs.add(self.fused_function)
# env.declare_var(node.name, PyrexTypes.py_object_type, node.pos)
node = Nodes.SingleAssignmentNode( node.body = Nodes.PassStatNode(node.pos)
node.pos, for arg in node.args:
lhs=ExprNodes.NameNode(node.pos, name=node.name), if arg.type.is_fused:
rhs=ExprNodes.NoneNode(node.pos)) arg.type = arg.type.get_fused_types()[0]
node.analyse_declarations(env)
return node return node
node = Nodes.FusedCFuncDefNode(node, env) node = Nodes.FusedCFuncDefNode(node, env)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment