Commit 69d8ad5f authored by Vitja Makarov's avatar Vitja Makarov

Don't crash on nested function inside cdef-func

parent 5a318f7c
......@@ -2066,6 +2066,10 @@ class CreateClosureClasses(CythonTransform):
self.path.pop()
return node
def visit_CFuncDefNode(self, node):
self.visitchildren(node)
return node
class GilCheck(VisitorTransform):
"""
......
# mode: error
cdef cdef_yield():
def inner():
pass
cpdef cpdef_yield():
def inner():
pass
_ERRORS = u"""
3:5: closures inside cdef functions not yet supported
7:6: closures inside cdef functions not yet supported
"""
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