fixes #10075 [backport]

This commit is contained in:
Araq 2019-01-13 15:52:50 +01:00
commit aa7ad88978
2 changed files with 31 additions and 3 deletions

View file

@ -2267,8 +2267,7 @@ proc matchesAux(c: PContext, n, nOrig: PNode,
if n.sons[a].kind == nkHiddenStdConv:
doAssert n.sons[a].sons[0].kind == nkEmpty and
n.sons[a].sons[1].kind == nkArgList and
n.sons[a].sons[1].len == 0
n.sons[a].sons[1].kind in {nkBracket, nkArgList}
# Steal the container and pass it along
setSon(m.call, formal.position + 1, n.sons[a].sons[1])
else: