summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-11-30 00:21:58 +0100
committerAraq <rumpf_a@web.de>2015-12-01 00:53:30 +0100
commit0d8c7624521207449f1b9194ed00084ebcb1c5f2 (patch)
treeae19f917c51467f10fa88f55a973a37f43cf715b /tests
parent217e0ab6e9aecc3d8254446e06bed816e7efe6a2 (diff)
downloadNim-0d8c7624521207449f1b9194ed00084ebcb1c5f2.tar.gz
cleanup of some tests
Diffstat (limited to 'tests')
-rw-r--r--tests/metatype/ttypeclasses.nim8
-rw-r--r--tests/types/tisop.nim2
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/metatype/ttypeclasses.nim b/tests/metatype/ttypeclasses.nim
index db9db7713..720527088 100644
--- a/tests/metatype/ttypeclasses.nim
+++ b/tests/metatype/ttypeclasses.nim
@@ -17,12 +17,12 @@ type
   TFoo[T] = object
     val: T
 
-  T1 = expr
-  T2 = expr
+  T1 = auto
+  T2 = auto
 
   Numeric = int|float
 
-proc takesExpr(x, y) =
+proc takesExpr(x, y: auto) =
   echo x, y
 
 proc same(x, y: T1) =
@@ -31,7 +31,7 @@ proc same(x, y: T1) =
 proc takesFoo(x, y: TFoo) =
   echo x.val, y.val
 
-proc takes2Types(x,y: T1, z: T2) =
+proc takes2Types[T1, T2](x,y: T1, z: T2) =
   echo x, y, z
 
 takesExpr(1, 2)
diff --git a/tests/types/tisop.nim b/tests/types/tisop.nim
index d0b7c32b2..ad5928016 100644
--- a/tests/types/tisop.nim
+++ b/tests/types/tisop.nim
@@ -32,7 +32,7 @@ static: assert(f.y.type.name == "string")
 when compiles(f.z):
   {.error: "Foo should not have a `z` field".}
 
-proc p(a, b) =
+proc p(a, b: auto) =
   when a.type is int:
     static: assert false