fixes #1006
This commit is contained in:
parent
5f64d7a353
commit
b76d2eac7f
3 changed files with 14 additions and 8 deletions
|
|
@ -94,6 +94,8 @@ proc semGenericStmt(c: PContext, n: PNode,
|
|||
let luf = if withinMixin notin flags: {checkUndeclared} else: {}
|
||||
var s = qualifiedLookUp(c, n, luf)
|
||||
if s != nil: result = semGenericStmtSymbol(c, n, s)
|
||||
else:
|
||||
|
||||
# XXX for example: ``result.add`` -- ``add`` needs to be looked up here...
|
||||
of nkEmpty, nkSym..nkNilLit:
|
||||
# see tests/compile/tgensymgeneric.nim:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue