Fixed tr pattern matching for varargs
This commit is contained in:
parent
9a747828fe
commit
b6f5c12158
3 changed files with 19 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue