summary refs log tree commit diff stats
path: root/tests/rodfiles/amethods.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2016-08-27 13:26:16 +0200
committerAraq <rumpf_a@web.de>2016-08-27 13:26:16 +0200
commit7630cd076bbdb9c3b1b851ffc6dc6a8ada07f4a6 (patch)
treeaa7ab4369b86c051f403d26fc69194a075f06ddf /tests/rodfiles/amethods.nim
parenta13cb26c4084d83df1d4627e5b842c050ed69177 (diff)
downloadNim-7630cd076bbdb9c3b1b851ffc6dc6a8ada07f4a6.tar.gz
updated test case
Diffstat (limited to 'tests/rodfiles/amethods.nim')
-rw-r--r--tests/rodfiles/amethods.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rodfiles/amethods.nim b/tests/rodfiles/amethods.nim
index ecd36d491..29cf757f7 100644
--- a/tests/rodfiles/amethods.nim
+++ b/tests/rodfiles/amethods.nim
@@ -1,11 +1,11 @@
 
 type
-  TBaseClass* = object of TObject
+  TBaseClass* = object of RootObj
 
 proc newBaseClass*: ref TBaseClass =
   new result
 
-method echoType*(x: ref TBaseClass) =
+method echoType*(x: ref TBaseClass) {.base.} =
   echo "base class"
 
 proc echoAlias*(x: ref TBaseClass) =