summary refs log tree commit diff stats
path: root/lib/pure/collections
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-07-30 16:07:33 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-07-30 16:34:42 +0200
commit8876ed23f1dc6d12a8ae7bf061b7e31c3adf54b4 (patch)
tree849c2cb53e205f2fc48418f88ab9acdd783f9137 /lib/pure/collections
parent86d4090cd890b6159f93c455f60c5f3ef56a1d27 (diff)
downloadNim-8876ed23f1dc6d12a8ae7bf061b7e31c3adf54b4.tar.gz
expr and stmt are now deprecated
Diffstat (limited to 'lib/pure/collections')
-rw-r--r--lib/pure/collections/sets.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/collections/sets.nim b/lib/pure/collections/sets.nim
index da32c1950..552e41ef7 100644
--- a/lib/pure/collections/sets.nim
+++ b/lib/pure/collections/sets.nim
@@ -256,7 +256,7 @@ proc incl*[A](s: var HashSet[A], other: HashSet[A]) =
   assert other.isValid, "The set `other` needs to be initialized."
   for item in other: incl(s, item)
 
-template doWhile(a: expr, b: stmt): stmt =
+template doWhile(a, b) =
   while true:
     b
     if not a: break
@@ -371,7 +371,7 @@ proc toSet*[A](keys: openArray[A]): HashSet[A] =
   result = initSet[A](rightSize(keys.len))
   for key in items(keys): result.incl(key)
 
-template dollarImpl(): stmt {.dirty.} =
+template dollarImpl() {.dirty.} =
   result = "{"
   for key in items(s):
     if result.len > 1: result.add(", ")