Files
Nim/tests/reject/tmethod.nim

12 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