diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-05-23 17:38:45 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-05-23 17:38:45 +0800 |
commit | 4a284d1f4ea958e0973337c4bb1349102734f4fd (patch) | |
tree | e9b3b6180852b827c0323eb56a6ef304c7e56078 /script/vm | |
parent | a7be41abbb19c31b4fac672f76bf4163a0d43cfb (diff) | |
download | lua-language-server-4a284d1f4ea958e0973337c4bb1349102734f4fd.zip |
fix can not union `table` with other basic types
Diffstat (limited to 'script/vm')
-rw-r--r-- | script/vm/infer.lua | 2 |
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 |