summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorArne Döring <arne.doering@gmx.net>2019-07-27 07:21:47 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-07-27 07:21:47 +0200
commit1a770402784ed99099f1905e1e4c201020e03bca (patch)
treee9939001ec574dc078471d9ff0136e3144efe71d /compiler
parent2fdba334dac4d8f1673db38ab8e98df5bc5e73f6 (diff)
downloadNim-1a770402784ed99099f1905e1e4c201020e03bca.tar.gz
fix #11812 (#11829)
* fixes #11812
* fixes #10899
* fixes #11367
Diffstat (limited to 'compiler')
-rw-r--r--compiler/sigmatch.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim
index 828d25fe8..154d76209 100644
--- a/compiler/sigmatch.nim
+++ b/compiler/sigmatch.nim
@@ -2117,7 +2117,7 @@ proc paramTypesMatchAux(m: var TCandidate, f, a: PType,
       # lift do blocks without params to lambdas
       let p = c.graph
       let lifted = c.semExpr(c, newProcNode(nkDo, argOrig.info, body = argOrig,
-          params = p.emptyNode, name = p.emptyNode, pattern = p.emptyNode,
+          params = nkFormalParams.newTree(p.emptyNode), name = p.emptyNode, pattern = p.emptyNode,
           genericParams = p.emptyNode, pragmas = p.emptyNode, exceptions = p.emptyNode), {})
       if f.kind == tyBuiltInTypeClass:
         inc m.genericMatches