Commit 0ce99d24 authored by Robert Bradshaw's avatar Robert Bradshaw

Test for #554, closures inside cdef block.

parent 2b59143d
......@@ -13,6 +13,7 @@ cpp_templated_ctypedef
cpp_structs
genexpr_T491
with_statement_module_level_T536
closure_inside_cdef_T554
# CPython regression tests that don't current work:
pyregr.test_threadsignals
......
def call_f(x):
"""
>>> call_f(2)
4
"""
return f(x)
cdef f(x): # def here => works fine
def g(y): return y*x # cdef here => compile error
return g(x) # faults@ INCREF(.*cur_scope->.*v_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