summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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()
+