Skip to content

Commit

Permalink
fixes #4510
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq committed Jul 28, 2016
1 parent d7a1abd commit ce91a1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/suggest.nim
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,8 @@ proc suggestSym*(info: TLineInfo; s: PSym; isDecl=true) {.inline.} =

proc markUsed(info: TLineInfo; s: PSym) =
incl(s.flags, sfUsed)
if s.kind == skEnumField and s.owner != nil:
incl(s.owner.flags, sfUsed)
if {sfDeprecated, sfError} * s.flags != {}:
if sfDeprecated in s.flags: message(info, warnDeprecated, s.name.s)
if sfError in s.flags: localError(info, errWrongSymbolX, s.name.s)
Expand Down

0 comments on commit ce91a1b

Please sign in to comment.