mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-14 23:33:28 +00:00
fixes #904
This commit is contained in:
@@ -792,6 +792,10 @@ proc semIndirectOp(c: PContext, n: PNode, flags: TExprFlags): PNode =
|
||||
n.flags.incl nfExprCall
|
||||
result = semOverloadedCallAnalyseEffects(c, n, nOrig, flags)
|
||||
if result == nil: return errorNode(c, n)
|
||||
elif result.kind notin nkCallKinds:
|
||||
# the semExpr() in overloadedCallOpr can even break this condition!
|
||||
# See bug #904 of how to trigger it:
|
||||
return result
|
||||
#result = afterCallActions(c, result, nOrig, flags)
|
||||
fixAbstractType(c, result)
|
||||
analyseIfAddressTakenInCall(c, result)
|
||||
|
||||
Reference in New Issue
Block a user