summary refs log tree commit diff stats
path: root/tests/table/ttableconstr.nim
diff options
context:
space:
mode:
authorClay Sweetser <clay.sweetser@gmail.com>2014-02-15 18:57:03 -0500
committerClay Sweetser <clay.sweetser@gmail.com>2014-02-15 18:57:03 -0500
commitce5a494927abf66cc39cf849b9c66e2dadbe579e (patch)
treea09a0e48025c79fee103b16f19140f533b7c6847 /tests/table/ttableconstr.nim
parentf701ee086aacf3ad9d4f58c20d5924fc0c5b3bb2 (diff)
downloadNim-ce5a494927abf66cc39cf849b9c66e2dadbe579e.tar.gz
Changed tests and tools to use 'discard' statements instead of 'nil' for empty blocks.
Diffstat (limited to 'tests/table/ttableconstr.nim')
-rw-r--r--tests/table/ttableconstr.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/table/ttableconstr.nim b/tests/table/ttableconstr.nim
index c627e68e8..1a21a18d1 100644
--- a/tests/table/ttableconstr.nim
+++ b/tests/table/ttableconstr.nim
@@ -1,7 +1,7 @@
 # Test if the new table constructor syntax works:
 
 template ignoreExpr(e: expr): stmt {.immediate.} =
-  nil
+  discard
 
 # test first class '..' syntactical citizen:  
 ignoreExpr x <> 2..4