summary refs log tree commit diff stats
path: root/tests/objects/toop1.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-11-21 02:26:49 +0100
committerAraq <rumpf_a@web.de>2014-11-21 02:26:49 +0100
commit326bdae8ca14a981f5ab8c553fbba45e28a36082 (patch)
treed30e680097fb0476e8a0b1d4a4d74e717b93e284 /tests/objects/toop1.nim
parent5ab3542c1801ba042fbe964245be004c0683abb2 (diff)
downloadNim-326bdae8ca14a981f5ab8c553fbba45e28a36082.tar.gz
fixes #837
Diffstat (limited to 'tests/objects/toop1.nim')
-rw-r--r--tests/objects/toop1.nim7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/objects/toop1.nim b/tests/objects/toop1.nim
index 350799f51..0d8ba124b 100644
--- a/tests/objects/toop1.nim
+++ b/tests/objects/toop1.nim
@@ -6,7 +6,7 @@ discard """
 import macros
 
 type
-  TFigure = object of TObject    # abstract base class:
+  TFigure = object of RootObj    # abstract base class:
     draw: proc (my: var TFigure) {.nimcall.} # concrete classes implement this
   
 proc init(f: var TFigure) = 
@@ -56,7 +56,7 @@ macro `!` (n: expr): stmt {.immediate.} =
     result.add(n[1]) # obj
 
 type
-  TSocket* = object of TObject
+  TSocket* = object of RootObj
     FHost: int # cannot be accessed from the outside of the module
                # the `F` prefix is a convention to avoid clashes since
                # the accessors are named `host`
@@ -84,6 +84,3 @@ r!draw
 c!draw() 
 
 #OUT 34[]o 5
-
-
-