tmethod.nim 151 B

123456789
  1. discard """
  2. errormsg: "\'method\' needs a parameter that has an object type"
  3. file: "tmethod.nim"
  4. line: 7
  5. """
  6. method m(i: int): int =
  7. return 5