assignments support ': stmtList' like let/var do

This commit is contained in:
Andreas Rumpf 2017-04-04 12:20:43 +02:00
commit e21ca54b11
3 changed files with 10 additions and 3 deletions

View file

@ -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