summary refs log tree commit diff stats
path: root/tests/method/tmethods_old.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/method/tmethods_old.nim')
-rw-r--r--tests/method/tmethods_old.nim12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/method/tmethods_old.nim b/tests/method/tmethods_old.nim
new file mode 100644
index 000000000..cd3f67217
--- /dev/null
+++ b/tests/method/tmethods_old.nim
@@ -0,0 +1,12 @@
+discard """
+  matrix: "--mm:arc -u:nimPreviewVtables"
+  output: '''
+do nothing
+'''
+"""
+
+# tmethods1
+method somethin(obj: RootObj) {.base.} =
+  echo "do nothing"
+var o: RootObj
+o.somethin()