summary refs log tree commit diff stats
path: root/tests/borrow/tinvalidborrow.nim
blob: 89aa4e2e8698d6b70418920009d483f5b8351b11 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
discard """
  errormsg: "no symbol to borrow from found"
  line: 11
"""

# bug #516

type
  TAtom = culong

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

var
  d, e: TAtom

echo( $(d == e) )