summaryrefslogtreecommitdiff
path: root/script/core/infer.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-05 17:13:45 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-05 17:13:45 +0800
commit366e5f9a2083bf12802cb237b1eaa2efac47f2a4 (patch)
tree363090af040d71b05b65fc72f6da3eb3978b7944 /script/core/infer.lua
parentbc1baf261f3552ab5a6731389bd21824530a454b (diff)
downloadlua-language-server-366e5f9a2083bf12802cb237b1eaa2efac47f2a4.zip
fix error
Diffstat (limited to 'script/core/infer.lua')
-rw-r--r--script/core/infer.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/infer.lua b/script/core/infer.lua
index ed802a58..fc84e597 100644
--- a/script/core/infer.lua
+++ b/script/core/infer.lua
@@ -541,7 +541,7 @@ function m.searchInfers(source, field, mark)
end
if source.docParam then
local docType = source.docParam.extends
- if docType.type == 'doc.type' then
+ if docType and docType.type == 'doc.type' then
for _, def in ipairs(docType.types) do
if def.typeGeneric then
searchInfer(def, infers, mark)