diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-11-29 16:54:15 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-11-29 16:54:15 +0800 |
commit | cbf18dc54d2d2315ae3bace888fc428550149c7a (patch) | |
tree | f5ea5167cac1f801e2bc897a22aaa8a42c7599a1 /script-beta/vm | |
parent | 155ee2059dd18d805140b87901d01ff79257ed60 (diff) | |
download | lua-language-server-cbf18dc54d2d2315ae3bace888fc428550149c7a.zip |
支持二级调用
Diffstat (limited to 'script-beta/vm')
-rw-r--r-- | script-beta/vm/getValue.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script-beta/vm/getValue.lua b/script-beta/vm/getValue.lua index 9ad9e86b..ef3a5504 100644 --- a/script-beta/vm/getValue.lua +++ b/script-beta/vm/getValue.lua @@ -857,6 +857,9 @@ function vm.viewType(values) if not values then return 'any' end + if type(values) ~= 'table' then + return values or 'any' + end local types = {} for i = 1, #values do local tp = values[i].type |