diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-28 03:03:00 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-28 03:03:00 +0800 |
commit | f3019c63409b7bdadb0b7ecedfd3b90a0b29397b (patch) | |
tree | 8e146b317d3dccbbf2df5d180f60c8b79e9b3e6c /script/vm/node.lua | |
parent | 4774c8ce50f0c971f9e9efde44c083c606f3105a (diff) | |
download | lua-language-server-f3019c63409b7bdadb0b7ecedfd3b90a0b29397b.zip |
supports `---@return ...`
Diffstat (limited to 'script/vm/node.lua')
-rw-r--r-- | script/vm/node.lua | 3 |
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 |