summaryrefslogtreecommitdiff
path: root/script-beta/vm
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-12-09 19:22:12 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-12-09 19:22:12 +0800
commitb6fefa81bbba986aab59cd5221673e11083213ad (patch)
tree3b5c2c0b54274c74349cff2d866e10b8c627b680 /script-beta/vm
parenta7f06f34a54dc65629869efe9fb3b4681e66d5cb (diff)
downloadlua-language-server-b6fefa81bbba986aab59cd5221673e11083213ad.zip
暂存
Diffstat (limited to 'script-beta/vm')
-rw-r--r--script-beta/vm/getValue.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script-beta/vm/getValue.lua b/script-beta/vm/getValue.lua
index a93ed6e9..a1f42da1 100644
--- a/script-beta/vm/getValue.lua
+++ b/script-beta/vm/getValue.lua
@@ -870,7 +870,7 @@ function vm.viewType(values)
local types = {}
for i = 1, #values do
local tp = values[i].type
- if not types[tp] and tp ~= 'any' then
+ if tp and not types[tp] and tp ~= 'any' then
types[tp] = true
types[#types+1] = tp
end