diff options
author | Araq <rumpf_a@web.de> | 2019-01-13 15:52:50 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2019-01-13 15:52:50 +0100 |
commit | aa7ad8897895acaee9e2999652050d5bc52921a7 (patch) | |
tree | 6ef6939fe7250ab335c3de9cfa320475e9fc4236 /compiler | |
parent | ab99bdfc408e56a2e8a1a3ada21effe983433851 (diff) | |
download | Nim-aa7ad8897895acaee9e2999652050d5bc52921a7.tar.gz |
fixes #10075 [backport]
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/sigmatch.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index 0915f303b..9aae254f3 100644 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -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: |