summaryrefslogtreecommitdiff
path: root/tests/errors/dataclass_e4.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errors/dataclass_e4.pyx')
-rw-r--r--tests/errors/dataclass_e4.pyx11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/errors/dataclass_e4.pyx b/tests/errors/dataclass_e4.pyx
new file mode 100644
index 000000000..007487bb8
--- /dev/null
+++ b/tests/errors/dataclass_e4.pyx
@@ -0,0 +1,11 @@
+# mode: error
+
+cimport cython
+
+@cython.dataclasses.dataclass
+cdef class C:
+ a: int = cython.dataclasses.field(unexpected=True)
+
+_ERRORS = """
+7:49: cython.dataclasses.field() got an unexpected keyword argument 'unexpected'
+"""