diff options
Diffstat (limited to 'tests/errors/dataclass_e3.pyx')
-rw-r--r-- | tests/errors/dataclass_e3.pyx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/errors/dataclass_e3.pyx b/tests/errors/dataclass_e3.pyx new file mode 100644 index 000000000..85a900172 --- /dev/null +++ b/tests/errors/dataclass_e3.pyx @@ -0,0 +1,13 @@ +# mode: compile +# tag: dataclass, warnings + +cimport cython +from dataclass import field + +@cython.dataclasses.dataclass +cdef class E: + a: int = field() + +_WARNINGS=""" +9:18: Do you mean cython.dataclasses.field instead? +""" |