summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf@web.de>2015-12-01 21:22:18 +0100
committerAndreas Rumpf <rumpf@web.de>2015-12-01 21:22:23 +0100
commit92e80e68bddec1cd7346d5c0f7de58ca5ff8474e (patch)
treeae33e6f7020cd18c80ba2bf7fa178e7f136c97ab /tests
parent59d1bc73a0da33eae196f918b649b9489e39681d (diff)
downloadNim-92e80e68bddec1cd7346d5c0f7de58ca5ff8474e.tar.gz
make tests green again
Diffstat (limited to 'tests')
-rw-r--r--tests/types/tisopr.nim23
1 files changed, 12 insertions, 11 deletions
diff --git a/tests/types/tisopr.nim b/tests/types/tisopr.nim
index b9acfa5fb..14999ebee 100644
--- a/tests/types/tisopr.nim
+++ b/tests/types/tisopr.nim
@@ -23,22 +23,23 @@ template yes(e: expr): stmt =
 template no(e: expr): stmt =
   static: assert(not e)
 
-var s = @[1, 2, 3]
+when false:
+  var s = @[1, 2, 3]
 
-yes s.items is iterator
-no  s.items is proc
+  yes s.items is iterator
+  no  s.items is proc
 
-yes s.items is iterator: int
-no  s.items is iterator: float
+  yes s.items is iterator: int
+  no  s.items is iterator: float
 
-yes s.items is iterator: TNumber
-no  s.items is iterator: object
+  yes s.items is iterator: TNumber
+  no  s.items is iterator: object
 
-type
-  Iter[T] = iterator: T
+  type
+    Iter[T] = iterator: T
 
-yes s.items is Iter[TNumber]
-no  s.items is Iter[float]
+  yes s.items is Iter[TNumber]
+  no  s.items is Iter[float]
 
 type
   Foo[N: static[int], T] = object