diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/deprecated/tequalhook.nim | 11 |
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 |