summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/metatype/tusertypeclasses.nim1
-rw-r--r--tests/metatype/udtcmanual.nim2
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/metatype/tusertypeclasses.nim b/tests/metatype/tusertypeclasses.nim
index 5b04c490f..eb6597e4d 100644
--- a/tests/metatype/tusertypeclasses.nim
+++ b/tests/metatype/tusertypeclasses.nim
@@ -34,6 +34,7 @@ type
     T.x
     y(T)
     intval T.y
+    let y = intval(T.y)
     
 proc y(x: TObj): int = 10
 
diff --git a/tests/metatype/udtcmanual.nim b/tests/metatype/udtcmanual.nim
index f22bd6ac6..dd44298dc 100644
--- a/tests/metatype/udtcmanual.nim
+++ b/tests/metatype/udtcmanual.nim
@@ -25,7 +25,7 @@ type
     C.len is Ordinal
     items(c) is iterator
     for value in C:
-      value.type is T
+      type(value) is T
 
 proc takesIntContainer(c: Container[int]) =
   for e in c: echo e