summary refs log tree commit diff stats
path: root/tests/parser
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-04-04 12:20:43 +0200
committerAndreas Rumpf <rumpf_a@web.de>2017-04-04 12:20:43 +0200
commite21ca54b11409764e495530136376f1b8f309fcb (patch)
treed7408f3fe93b38a873245dedadf8825178e5d971 /tests/parser
parent9aeccda2629ae0828fbcd4fd8aa50b3abc7e95b3 (diff)
downloadNim-e21ca54b11409764e495530136376f1b8f309fcb.tar.gz
assignments support ': stmtList' like let/var do
Diffstat (limited to 'tests/parser')
-rw-r--r--tests/parser/tletcolon.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/parser/tletcolon.nim b/tests/parser/tletcolon.nim
index ec7c24106..6b86535c8 100644
--- a/tests/parser/tletcolon.nim
+++ b/tests/parser/tletcolon.nim
@@ -18,7 +18,8 @@ template y(val, body): untyped =
 proc mana =
   let foo = x:
     echo "boo"
-  var foo2 = y 3:
+  var foo2: int
+  foo2 = y 3:
     echo "3"
   echo foo, " ", foo2