diff options
Diffstat (limited to 'tests/method/trecmeth.nim')
-rw-r--r-- | tests/method/trecmeth.nim | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/method/trecmeth.nim b/tests/method/trecmeth.nim deleted file mode 100644 index ac0a1e977..000000000 --- a/tests/method/trecmeth.nim +++ /dev/null @@ -1,22 +0,0 @@ -# Note: We only compile this to verify that code generation -# for recursive methods works, no code is being executed - -type - Obj = ref object of RootObj - -# Mutual recursion - -method alpha(x: Obj) {.base.} -method beta(x: Obj) {.base.} - -method alpha(x: Obj) = - beta(x) - -method beta(x: Obj) = - alpha(x) - -# Simple recursion - -method gamma(x: Obj) {.base.} = - gamma(x) - |