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