summaryrefslogtreecommitdiff
path: root/script/vm/node.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm/node.lua')
-rw-r--r--script/vm/node.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/vm/node.lua b/script/vm/node.lua
index 16b5a8d8..6f0554f0 100644
--- a/script/vm/node.lua
+++ b/script/vm/node.lua
@@ -136,7 +136,8 @@ function mt:isNullable()
for _, c in ipairs(self) do
if c.type == 'nil'
or (c.type == 'global' and c.cate == 'type' and c.name == 'nil')
- or (c.type == 'global' and c.cate == 'type' and c.name == 'any') then
+ or (c.type == 'global' and c.cate == 'type' and c.name == 'any')
+ or (c.type == 'global' and c.cate == 'type' and c.name == '...') then
return true
end
end