summaryrefslogtreecommitdiff
path: root/script-beta/vm
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-12-09 19:40:02 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-12-09 19:40:02 +0800
commit610bd3b1db2d7e27dde61228697a3479474a7bb7 (patch)
tree95838b1b2b932a05a0653f5051365c014b61a75e /script-beta/vm
parentb6fefa81bbba986aab59cd5221673e11083213ad (diff)
downloadlua-language-server-610bd3b1db2d7e27dde61228697a3479474a7bb7.zip
修正bug
Diffstat (limited to 'script-beta/vm')
-rw-r--r--script-beta/vm/getValue.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script-beta/vm/getValue.lua b/script-beta/vm/getValue.lua
index a1f42da1..75737123 100644
--- a/script-beta/vm/getValue.lua
+++ b/script-beta/vm/getValue.lua
@@ -542,7 +542,7 @@ local function checkLibraryReturn(source)
if not rtn.type then
return nil
end
- if rtn.type == '...' then
+ if rtn.type == '...' or rtn.type == 'any' then
return
end
return alloc {
@@ -583,7 +583,7 @@ local function checkLibraryArg(source)
if not arg.type then
return
end
- if arg.type == '...' then
+ if arg.type == '...' or arg.type == 'any' then
return
end
return alloc {