Commit ceafa531 authored by Robert Bradshaw's avatar Robert Bradshaw

Add test for bare closure return bug.

parent cc1c499b
......@@ -29,3 +29,19 @@ def closure_in_void():
cdef void add_gen(l):
x = "abc"
l.append((c for c in x))
def closure_in_int():
>>> genex = closure_in_int()
>>> list(genex)
['a', 'b', 'c']
l = []
return l[0]
cdef int add_gen_int(l):
x = "abc"
l.append((c for c in x))
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