tinvalidborrow.nim 187 B

1234567891011121314151617
  1. discard """
  2. errormsg: "no symbol to borrow from found"
  3. line: 11
  4. """
  5. # bug #516
  6. type
  7. TAtom = culong
  8. proc `==`*(a, b: TAtom): bool {.borrow.}
  9. var
  10. d, e: TAtom
  11. echo( $(d == e) )