diff options
author | Araq <rumpf_a@web.de> | 2016-12-18 20:25:34 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2016-12-18 20:25:34 +0100 |
commit | 4561d706320e7afe0c4c943763e01aa9369be167 (patch) | |
tree | ff6dc60c48970bd231c13d41185d57066c3433d7 | |
parent | 91935fd915ce643472c81e11a04d1531eacad6e9 (diff) | |
parent | 7bbf74e2a3b0a45f4fe49e3abd0e3ccf0c3b5c8a (diff) | |
download | Nim-4561d706320e7afe0c4c943763e01aa9369be167.tar.gz |
Merge branch 'devel' of github.com:nim-lang/Nim into devel
-rw-r--r-- | compiler/suggest.nim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/suggest.nim b/compiler/suggest.nim index 39689099a..9646c7399 100644 --- a/compiler/suggest.nim +++ b/compiler/suggest.nim @@ -57,10 +57,11 @@ proc symToSuggest(s: PSym, isLocal: bool, section: string, li: TLineInfo; result.qualifiedPath = @[] if not isLocal and s.kind != skModule: let ow = s.owner - if ow.kind != skModule and ow.owner != nil: + if ow != nil and ow.kind != skModule and ow.owner != nil: let ow2 = ow.owner result.qualifiedPath.add(ow2.origModuleName) - result.qualifiedPath.add(ow.origModuleName) + if ow != nil: + result.qualifiedPath.add(ow.origModuleName) result.qualifiedPath.add(s.name.s) if s.typ != nil: |