diff options
author | Miguel <leu-gim@moy-server.ru> | 2014-01-26 05:37:18 +0400 |
---|---|---|
committer | Miguel <leu-gim@moy-server.ru> | 2014-01-26 05:37:18 +0400 |
commit | a8b4e3c764dd967e1ac90305a574c4cd5e0d019b (patch) | |
tree | 9165419d8557b493bf65a3de04f248ae6f2288b9 /tests/method/tmethod.nim | |
parent | 4396270fc7c447fa7ce9478a6bf9682ba7c496a7 (diff) | |
parent | 5d712e0d3f9f5b8e486720c8bedd749656b527d8 (diff) | |
download | Nim-a8b4e3c764dd967e1ac90305a574c4cd5e0d019b.tar.gz |
Merge branch 'devel' of git://github.com/Araq/Nimrod
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 |