summary refs log blame commit diff stats
path: root/tests/borrow/tinvalidborrow.nim
blob: 9ab9e8d645d98e9993e393b4c0a4462d7b8ca7c5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                            
discard """
  line: 11
  errormsg: "no symbol to borrow from found"
"""

# bug #516

type
  TAtom = culong

proc `==`*(a, b: TAtom): bool {.borrow.}

var
  d, e: TAtom

echo( $(d == e) )