Nim/tests/reject/tmethod.nim

11 lines
154 B
Nim
Executable file

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