From: Kurt Smith Date: Tue, 24 Mar 2009 01:23:38 +0000 (-0500) Subject: Added test case for ticket 135 in tests/bugs. X-Git-Tag: 0.11.1.alpha~33^2~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2b948d06cbe95d3dac12b263e4f156e319f94e63;p=cython.git Added test case for ticket 135 in tests/bugs. --- diff --git a/tests/bugs/return_outside_function_T135.pyx b/tests/bugs/return_outside_function_T135.pyx new file mode 100644 index 00000000..3e1a416f --- /dev/null +++ b/tests/bugs/return_outside_function_T135.pyx @@ -0,0 +1,12 @@ +return 'bar' +class A: + return None + +cdef class B: + return None + +_ERRORS = u''' +1:0: Return not inside a function body +3:4: Return not inside a function body +6:4: Return not inside a function body +'''