summary refs log tree commit diff stats
path: root/tests/deprecated/tequalhook.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/deprecated/tequalhook.nim')
-rw-r--r--tests/deprecated/tequalhook.nim11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/deprecated/tequalhook.nim b/tests/deprecated/tequalhook.nim
new file mode 100644
index 000000000..79ee835f8
--- /dev/null
+++ b/tests/deprecated/tequalhook.nim
@@ -0,0 +1,11 @@
+discard """
+  errormsg: "Overriding `=` hook is deprecated; Override `=copy` hook instead"
+  matrix: "--warningAsError[Deprecated]:on"
+"""
+
+type
+  SharedString = object
+    data: string
+
+proc `=`(x: var SharedString, y: SharedString) =
+  discard
\ No newline at end of file