Added test case for ticket 135 in tests/bugs.
authorKurt Smith <kwsmith1@wisc.edu>
Tue, 24 Mar 2009 01:23:38 +0000 (20:23 -0500)
committerKurt Smith <kwsmith1@wisc.edu>
Tue, 24 Mar 2009 01:23:38 +0000 (20:23 -0500)
tests/bugs/return_outside_function_T135.pyx [new file with mode: 0644]

diff --git a/tests/bugs/return_outside_function_T135.pyx b/tests/bugs/return_outside_function_T135.pyx
new file mode 100644 (file)
index 0000000..3e1a416
--- /dev/null
@@ -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
+'''