summary refs log blame commit diff stats
path: root/tests/reject/tmethod.nim
blob: 999016072bf35e9ebc255f10faaaf4140a6961b0 (plain) (tree)
1
2
3
4
5
6
7
8
9




                                                                  



                       

 
discard """
  file: "tmethod.nim"
  line: 7
  errormsg: "\'method\' needs a parameter that has an object type"
"""

method m(i: int): int =
  return 5