summary refs log tree commit diff stats
path: root/compiler/semstmts.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-08-29 07:49:58 +0200
committerGitHub <noreply@github.com>2019-08-29 07:49:58 +0200
commit9203d3a982446990467f4ddcfdc33d2cc5d91882 (patch)
tree79546400e461068eff54aec54322a02b09dd962d /compiler/semstmts.nim
parentcd106cf68071a3249d32d4ffc2948cd5fe6c1795 (diff)
downloadNim-9203d3a982446990467f4ddcfdc33d2cc5d91882.tar.gz
fixes 5870 (#11704)
* fixes #5870
* make tclosure test green again
* this check is correct but breaks some Nimble packages
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r--compiler/semstmts.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim
index 5a9c92647..b22dc7952 100644
--- a/compiler/semstmts.nim
+++ b/compiler/semstmts.nim
@@ -1880,7 +1880,7 @@ proc semProcAux(c: PContext, n: PNode, kind: TSymKind,
     else:
       pushProcCon(c, s)
       if n.sons[genericParamsPos].kind == nkEmpty or usePseudoGenerics:
-        if not usePseudoGenerics: paramsTypeCheck(c, s.typ)
+        if not usePseudoGenerics and s.magic == mNone: paramsTypeCheck(c, s.typ)
 
         c.p.wasForwarded = proto != nil
         maybeAddResult(c, s, n)