summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-09 14:35:02 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-09 14:35:02 +0800
commit1efc05d573a33d2ed2f2bc43fb4142a450bbfa02 (patch)
tree85b74ecd60a1dfa4da8f94900d23f66d9f0f7a73 /script
parent49ed110bca2ee7d39311f1a973792748ad138437 (diff)
downloadlua-language-server-1efc05d573a33d2ed2f2bc43fb4142a450bbfa02.zip
incorrect type infer
Diffstat (limited to 'script')
-rw-r--r--script/core/infer.lua6
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)