Commit efbac550 authored by Vitja Makarov's avatar Vitja Makarov

Bugfix, use correct scope

parent b22011f8
......@@ -3178,7 +3178,7 @@ class DefNodeWrapper(FuncDefNode):
code.enter_cfunc_scope()
code.return_from_error_cleanup_label = code.new_label()
with_pymethdef = (self.target.needs_assignment_synthesis(lenv, code) or
with_pymethdef = (self.target.needs_assignment_synthesis(env, code) or
self.target.pymethdef_required)
self.generate_function_header(code, with_pymethdef)
self.generate_argument_declarations(lenv, code)
......
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