new error test for method redeclaration
authorStefan Behnel <scoder@users.berlios.de>
Thu, 5 Jun 2008 12:36:30 +0000 (14:36 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Thu, 5 Jun 2008 12:36:30 +0000 (14:36 +0200)
tests/errors/cmethbasematch.pyx [new file with mode: 0644]

diff --git a/tests/errors/cmethbasematch.pyx b/tests/errors/cmethbasematch.pyx
new file mode 100644 (file)
index 0000000..b0b1222
--- /dev/null
@@ -0,0 +1,12 @@
+cdef class C:
+    cdef void f(self):
+        pass
+
+cdef class D(C):
+    cdef void f(self, int x):
+        pass
+
+_ERRORS = u"""
+6: 9: Signature not compatible with previous declaration
+2: 9: Previous declaration is here
+"""