summary refs log tree commit diff stats
path: root/tests/ic/mbaseobj.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ic/mbaseobj.nim')
-rw-r--r--tests/ic/mbaseobj.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ic/mbaseobj.nim b/tests/ic/mbaseobj.nim
new file mode 100644
index 000000000..0f4e4a90d
--- /dev/null
+++ b/tests/ic/mbaseobj.nim
@@ -0,0 +1,7 @@
+
+type
+  Base* = ref object of RootObj
+    s*: string
+
+method m*(b: Base) {.base.} =
+  echo "Base ", b.s