toverl.nim 230 B

123456789101112
  1. discard """
  2. errormsg: "redefinition of \'TNone\'"
  3. file: "toverl.nim"
  4. line: 11
  5. """
  6. # Test for overloading
  7. type
  8. TNone {.exportc: "_NONE", final.} = object
  9. proc TNone(a, b: int) = nil #ERROR_MSG attempt to redefine 'TNone'