diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-09 14:35:02 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-09 14:35:02 +0800 |
commit | 1efc05d573a33d2ed2f2bc43fb4142a450bbfa02 (patch) | |
tree | 85b74ecd60a1dfa4da8f94900d23f66d9f0f7a73 /script/core/infer.lua | |
parent | 49ed110bca2ee7d39311f1a973792748ad138437 (diff) | |
download | lua-language-server-1efc05d573a33d2ed2f2bc43fb4142a450bbfa02.zip |
incorrect type infer
Diffstat (limited to 'script/core/infer.lua')
-rw-r--r-- | script/core/infer.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/script/core/infer.lua b/script/core/infer.lua index 39625021..84a2b2e5 100644 --- a/script/core/infer.lua +++ b/script/core/infer.lua @@ -541,9 +541,9 @@ function m.searchInfers(source, field, mark) end end end - end - if source.type == 'field' or source.type == 'method' then - searchInfer(source.parent, infers, mark) + if source.type == 'field' or source.type == 'method' then + searchInfer(source.parent, infers, mark) + end end for _, def in ipairs(defs) do searchInfer(def, infers, mark) |