summary refs log tree commit diff stats
path: root/tests/accept/run
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-05-02 20:42:29 +0200
committerAraq <rumpf_a@web.de>2011-05-02 20:42:29 +0200
commit7d2b3dd6db07203d7ff7a083ddae62aa8e7942c8 (patch)
tree620ab756043b848bd202f96223664e6695be8215 /tests/accept/run
parent4d5c3ebd468fa17a02a9abb9814c04e18baef309 (diff)
downloadNim-7d2b3dd6db07203d7ff7a083ddae62aa8e7942c8.tar.gz
fixes #12
Diffstat (limited to 'tests/accept/run')
-rw-r--r--tests/accept/run/tmethods1.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/accept/run/tmethods1.nim b/tests/accept/run/tmethods1.nim
new file mode 100644
index 000000000..adcca9e19
--- /dev/null
+++ b/tests/accept/run/tmethods1.nim
@@ -0,0 +1,10 @@
+discard """
+  output: "do nothing"
+"""
+
+method somethin(obj: TObject) =
+  echo "do nothing"
+
+var o: TObject
+o.somethin()
+