diff options
author | Arne Döring <arne.doering@gmx.net> | 2019-02-12 22:00:31 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-02-13 23:30:14 +0100 |
commit | 28394153aba1e1ec0410406392e26e1e7e2e681e (patch) | |
tree | 0f2f455db7375b8e2c1e57b56a7f7d950d955bab /compiler/suggest.nim | |
parent | 304b1dd34bc52df29528c2a12f769cb59904db5a (diff) | |
download | Nim-28394153aba1e1ec0410406392e26e1e7e2e681e.tar.gz |
32 bit fixes (#10608)
Diffstat (limited to 'compiler/suggest.nim')
-rw-r--r-- | compiler/suggest.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/suggest.nim b/compiler/suggest.nim index 70a085bdf..d501acd46 100644 --- a/compiler/suggest.nim +++ b/compiler/suggest.nim @@ -495,7 +495,7 @@ proc suggestSym*(conf: ConfigRef; info: TLineInfo; s: PSym; usageSym: var PSym; proc extractPragma(s: PSym): PNode = if s.kind in routineKinds: result = s.ast[pragmasPos] - elif s.kind in {skType, skVar, skLet}: + elif s.kind in {skType, skVar, skLet} and s.ast[0].kind == nkPragmaExpr: # s.ast = nkTypedef / nkPragmaExpr / [nkSym, nkPragma] result = s.ast[0][1] doAssert result == nil or result.kind == nkPragma |