diff options
Diffstat (limited to 'tests/errors/dataclass_e2.pyx')
-rw-r--r-- | tests/errors/dataclass_e2.pyx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/errors/dataclass_e2.pyx b/tests/errors/dataclass_e2.pyx new file mode 100644 index 000000000..e25965938 --- /dev/null +++ b/tests/errors/dataclass_e2.pyx @@ -0,0 +1,13 @@ +# mode: error +# tag: dataclass + +import dataclasses + +@dataclasses.dataclass +cdef class C: + pass + +_ERRORS = """ +6:0: Cdef functions/classes cannot take arbitrary decorators. +6:0: Use '@cython.dataclasses.dataclass' on cdef classes to create a dataclass +""" |