diff options
Diffstat (limited to 'tests/method/tmethod.nim')
-rw-r--r-- | tests/method/tmethod.nim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/method/tmethod.nim b/tests/method/tmethod.nim new file mode 100644 index 000000000..0cfe24c70 --- /dev/null +++ b/tests/method/tmethod.nim @@ -0,0 +1,8 @@ +discard """ + file: "tmethod.nim" + line: 7 + errormsg: "\'method\' needs a parameter that has an object type" +""" + +method m(i: int): int = + return 5 |