summary refs log tree commit diff stats
path: root/examples/allany.nim
diff options
context:
space:
mode:
Diffstat (limited to 'examples/allany.nim')
-rw-r--r--examples/allany.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/allany.nim b/examples/allany.nim
index 52a794204..6ff055aa6 100644
--- a/examples/allany.nim
+++ b/examples/allany.nim
@@ -1,6 +1,6 @@
 # All and any
 
-template all(container, cond: expr): expr {.immediate.} =
+template all(container, cond: untyped): bool =
   block:
     var result = true
     for it in items(container):
@@ -9,7 +9,7 @@ template all(container, cond: expr): expr {.immediate.} =
         break
     result
 
-template any(container, cond: expr): expr {.immediate.} =
+template any(container, cond: untyped): bool =
   block:
     var result = false
     for it in items(container):