summary refs log tree commit diff stats
path: root/tests/msgs/tdeprecatedequalhook.nim
blob: 79ee835f834be099ef2078a1c2bfb02dbaf4170e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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