diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-07-07 16:49:36 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-07-07 16:49:36 +0800 |
commit | 91f96833c301edbaa7225429c385ce487510a29f (patch) | |
tree | 56a6c03ca9c309d2026e346297c8cb66561fbe1e /script | |
parent | 3cdafcc068385ad25325dea8ddd33d1a8b380ba9 (diff) | |
download | lua-language-server-91f96833c301edbaa7225429c385ce487510a29f.zip |
fix #1292
Diffstat (limited to 'script')
-rw-r--r-- | script/vm/compiler.lua | 2 |
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 |