fixes 5870 (#11704)
* fixes #5870 * make tclosure test green again * this check is correct but breaks some Nimble packages
This commit is contained in:
parent
cd106cf680
commit
9203d3a982
4 changed files with 47 additions and 26 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue