summary refs log tree commit diff stats
path: root/tests/method/trecmeth.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-09-06 02:29:30 +0200
committerAraq <rumpf_a@web.de>2015-09-06 02:31:28 +0200
commitdc047931bbde432512053c91d0cb9b8a230a7574 (patch)
tree7a56044ed8db0c741cd5777bb192c7e155617c8e /tests/method/trecmeth.nim
parentd2e4d6ad8235e96191faae376c134e224fafdc11 (diff)
downloadNim-dc047931bbde432512053c91d0cb9b8a230a7574.tar.gz
fixes #2590; methods now require a .base annotation
Diffstat (limited to 'tests/method/trecmeth.nim')
-rw-r--r--tests/method/trecmeth.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/method/trecmeth.nim b/tests/method/trecmeth.nim
index 32f620f15..ac0a1e977 100644
--- a/tests/method/trecmeth.nim
+++ b/tests/method/trecmeth.nim
@@ -2,12 +2,12 @@
 # for recursive methods works, no code is being executed
 
 type
-  Obj = ref object of TObject
+  Obj = ref object of RootObj
 
 # Mutual recursion
 
-method alpha(x: Obj)
-method beta(x: Obj)
+method alpha(x: Obj) {.base.}
+method beta(x: Obj) {.base.}
 
 method alpha(x: Obj) =
   beta(x)
@@ -17,6 +17,6 @@ method beta(x: Obj) =
 
 # Simple recursion
 
-method gamma(x: Obj) =
+method gamma(x: Obj) {.base.} =
   gamma(x)