untyped proc/template/macro params default to expr
This commit is contained in:
parent
84202d2a4e
commit
70f5236d48
2 changed files with 15 additions and 17 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue