* fix #17941: UnusedImport works for var/let/const/type invoked inside a generic * fixup
This commit is contained in:
parent
e224865b3b
commit
38b41f893a
4 changed files with 6 additions and 4 deletions
|
|
@ -189,6 +189,9 @@ proc semGenericStmt(c: PContext, n: PNode,
|
|||
case n.kind
|
||||
of nkIdent, nkAccQuoted:
|
||||
result = lookup(c, n, flags, ctx)
|
||||
if result != nil and result.kind == nkSym:
|
||||
assert result.sym != nil
|
||||
markUsed(c, n.info, result.sym)
|
||||
of nkDotExpr:
|
||||
#let luf = if withinMixin notin flags: {checkUndeclared} else: {}
|
||||
#var s = qualifiedLookUp(c, n, luf)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue