diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-05 17:13:45 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-05 17:13:45 +0800 |
commit | 366e5f9a2083bf12802cb237b1eaa2efac47f2a4 (patch) | |
tree | 363090af040d71b05b65fc72f6da3eb3978b7944 /script/core/infer.lua | |
parent | bc1baf261f3552ab5a6731389bd21824530a454b (diff) | |
download | lua-language-server-366e5f9a2083bf12802cb237b1eaa2efac47f2a4.zip |
fix error
Diffstat (limited to 'script/core/infer.lua')
-rw-r--r-- | script/core/infer.lua | 2 |
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) |