summaryrefslogtreecommitdiff
path: root/script/vm
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-05-23 17:38:45 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-05-23 17:38:45 +0800
commit4a284d1f4ea958e0973337c4bb1349102734f4fd (patch)
treee9b3b6180852b827c0323eb56a6ef304c7e56078 /script/vm
parenta7be41abbb19c31b4fac672f76bf4163a0d43cfb (diff)
downloadlua-language-server-4a284d1f4ea958e0973337c4bb1349102734f4fd.zip
fix can not union `table` with other basic types
Diffstat (limited to 'script/vm')
-rw-r--r--script/vm/infer.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/vm/infer.lua b/script/vm/infer.lua
index dba46ffc..2d8028df 100644
--- a/script/vm/infer.lua
+++ b/script/vm/infer.lua
@@ -76,7 +76,7 @@ local viewNodeSwitch = util.switch()
: case 'global'
: call(function (source, infer)
if source.cate == 'type' then
- if source.name ~= 'unknown' then
+ if not guide.isBasicType(source.name) then
infer._hasClass = true
end
if source.name == 'number' then