summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-07 16:49:36 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-07 16:49:36 +0800
commit91f96833c301edbaa7225429c385ce487510a29f (patch)
tree56a6c03ca9c309d2026e346297c8cb66561fbe1e /script
parent3cdafcc068385ad25325dea8ddd33d1a8b380ba9 (diff)
downloadlua-language-server-91f96833c301edbaa7225429c385ce487510a29f.zip
fix #1292
Diffstat (limited to 'script')
-rw-r--r--script/vm/compiler.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua
index 995fe395..374ada92 100644
--- a/script/vm/compiler.lua
+++ b/script/vm/compiler.lua
@@ -714,7 +714,7 @@ function vm.selectNode(list, index)
else
---@type vm.node
result = vm.compileNode(exp)
- if exp.type == 'varargs' and result:isEmpty() then
+ if result:isEmpty() then
result:merge(vm.declareGlobal('type', 'unknown'))
end
end