Skip to content

Commit

Permalink
Fixes nim-lang#12832 (nim-lang#12842) [backport]
Browse files Browse the repository at this point in the history
(cherry picked from commit ff5ef95)
  • Loading branch information
nc-x authored and narimiran committed Dec 10, 2019
1 parent 512727d commit 0f05a0d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions compiler/semtempl.nim
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,11 @@ proc semTemplSymbol(c: PContext, n: PNode, s: PSym; isField: bool): PNode =
else:
if isField and sfGenSym in s.flags: result = n
else: result = newSymNode(s, n.info)
# Issue #12832
when defined(nimsuggest):
suggestSym(c.config, n.info, s, c.graph.usageSym, false)
if {optStyleHint, optStyleError} * c.config.globalOptions != {}:
styleCheckUse(c.config, n.info, s)

proc semRoutineInTemplName(c: var TemplCtx, n: PNode): PNode =
result = n
Expand Down

0 comments on commit 0f05a0d

Please sign in to comment.