Fixed tr pattern matching for varargs

This commit is contained in:
Yuriy Glukhov 2016-04-05 22:44:10 +03:00
commit b6f5c12158
3 changed files with 19 additions and 2 deletions

View file

@ -129,7 +129,7 @@ proc matchNested(c: PPatternContext, p, n: PNode, rpn: bool): bool =
result = bindOrCheck(c, p.sons[2].sym, arglist)
proc matches(c: PPatternContext, p, n: PNode): bool =
# hidden conversions (?)
let n = skipHidden(n)
if nfNoRewrite in n.flags:
result = false
elif isPatternParam(c, p):