untyped proc/template/macro params default to expr

This commit is contained in:
Zahary Karadjov 2012-03-20 17:44:30 +02:00
commit 70f5236d48
2 changed files with 15 additions and 17 deletions

View file

@ -619,7 +619,7 @@ proc parseParamList(p: var TParser, retColon = true): PNode =
while true:
case p.tok.tokType #optInd(p, a);
of tkSymbol, tkAccent:
a = parseIdentColonEquals(p, {})
a = parseIdentColonEquals(p, {withBothOptional})
of tkParRi:
break
else: