fixes #2594
This commit is contained in:
parent
c921f30b1d
commit
fd80a51547
3 changed files with 26 additions and 3 deletions
|
|
@ -986,8 +986,11 @@ proc semProcTypeNode(c: PContext, n, genericParams: PNode,
|
|||
if r.sym == nil or sfAnon notin r.sym.flags:
|
||||
let lifted = liftParamType(c, kind, genericParams, r, "result",
|
||||
n.sons[0].info)
|
||||
if lifted != nil: r = lifted
|
||||
r.flags.incl tfRetType
|
||||
if lifted != nil:
|
||||
r = lifted
|
||||
#if r.kind != tyGenericParam:
|
||||
#echo "came here for ", typeToString(r)
|
||||
r.flags.incl tfRetType
|
||||
r = skipIntLit(r)
|
||||
if kind == skIterator:
|
||||
# see tchainediterators
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue