summary refs log tree commit diff stats
path: root/tests/assign/tassign.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/assign/tassign.nim')
-rw-r--r--tests/assign/tassign.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/assign/tassign.nim b/tests/assign/tassign.nim
index c95114015..fdec04d22 100644
--- a/tests/assign/tassign.nim
+++ b/tests/assign/tassign.nim
@@ -80,7 +80,7 @@ block tcopy:
 
 block tgenericassign:
   type
-    TAny = object {.pure.}
+    TAny {.pure.} = object
       value: pointer
       rawType: pointer
 
@@ -178,7 +178,7 @@ when false:
   proc `=`[T](d: var GenericT[T]; src: GenericT[T]) =
     shallowCopy(d.a, src.a)
     shallowCopy(d.b, src.b)
-    echo "GenericT[T] '=' ", type(T).name
+    echo "GenericT[T] '=' ", typeof(T).name
 
   var ag: GenericT[int]
   var bg: GenericT[int]