summaryrefslogtreecommitdiff
path: root/script/vm/compiler.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-07 00:07:28 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-07 00:07:28 +0800
commit01a09c66af04ab3e37d02782721c20bff8092e15 (patch)
tree5a2eb28be3c347f7e62772d24b0f16993ca36007 /script/vm/compiler.lua
parentd1fd05ec4b174693827cc4cae68a0cac2583c599 (diff)
downloadlua-language-server-01a09c66af04ab3e37d02782721c20bff8092e15.zip
some fix
Diffstat (limited to 'script/vm/compiler.lua')
-rw-r--r--script/vm/compiler.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua
index a9cd50cd..995fe395 100644
--- a/script/vm/compiler.lua
+++ b/script/vm/compiler.lua
@@ -295,8 +295,7 @@ function vm.getClassFields(suri, object, key, ref, pushResult)
hasFounded[fieldKey] = true
end
end
- end
- if not hasFounded[fieldKey] then
+ elseif key and not hasFounded[key] then
local keyType = type(key)
if keyType == 'table' then
-- ---@field [integer] boolean -> class[integer]