summary refs log tree commit diff stats
path: root/tests/objects/tinherentedvalues.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/objects/tinherentedvalues.nim')
-rw-r--r--tests/objects/tinherentedvalues.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/objects/tinherentedvalues.nim b/tests/objects/tinherentedvalues.nim
index ad7b5f326..7d4d7d23e 100644
--- a/tests/objects/tinherentedvalues.nim
+++ b/tests/objects/tinherentedvalues.nim
@@ -6,7 +6,7 @@ true
 
 # bug #1053
 type
-  TA = object of TObject
+  TA = object of RootObj
     a: int
 
   TB = object of TA
@@ -32,13 +32,13 @@ test(v)
 
 # bug #924
 type
-  MyObject = object of TObject
+  MyObject = object of RootObj
     x: int
 
 var
   asd: MyObject
 
-proc isMyObject(obj: TObject) =
+proc isMyObject(obj: RootObj) =
     echo obj of MyObject
     if obj of MyObject:
         let a = MyObject(obj)
@@ -46,7 +46,7 @@ proc isMyObject(obj: TObject) =
 
 asd.x = 5
 
-#var asdCopy = TObject(asd)
+#var asdCopy = RootObj(asd)
 #echo asdCopy of MyObject
 
 isMyObject(asd)