diff options
author | Arne Döring <arne.doering@gmx.net> | 2018-11-23 16:19:35 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-11-23 16:19:35 +0100 |
commit | 56c4a4ae1fcfdfc62ad02af3ae61778fdb0a2759 (patch) | |
tree | b70932df728a9bd12fc29ccd2fcfb7a9dafc2656 | |
parent | a20169af91b63c6e855ec37ab3faf50e54152bb4 (diff) | |
download | Nim-56c4a4ae1fcfdfc62ad02af3ae61778fdb0a2759.tar.gz |
fix #9759 (#9789)
-rw-r--r-- | compiler/semexprs.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index 9433a7327..669862c56 100644 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -2346,7 +2346,6 @@ proc semExpr(c: PContext, n: PNode, flags: TExprFlags = {}): PNode = {checkUndeclared, checkModule, checkAmbiguity, checkPureEnumFields} var s = qualifiedLookUp(c, n, checks) if c.matchedConcept == nil: semCaptureSym(s, c.p.owner) - result = semSym(c, n, s, flags) if s.kind in {skProc, skFunc, skMethod, skConverter, skIterator}: #performProcvarCheck(c, n, s) result = symChoice(c, n, s, scClosed) @@ -2354,6 +2353,8 @@ proc semExpr(c: PContext, n: PNode, flags: TExprFlags = {}): PNode = markIndirect(c, result.sym) # if isGenericRoutine(result.sym): # localError(c.config, n.info, errInstantiateXExplicitly, s.name.s) + else: + result = semSym(c, n, s, flags) of nkSym: # because of the changed symbol binding, this does not mean that we # don't have to check the symbol for semantics here again! |