We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
---@return ...
1 parent 4774c8c commit f3019c6Copy full SHA for f3019c6
script/vm/node.lua
@@ -136,7 +136,8 @@ function mt:isNullable()
136
for _, c in ipairs(self) do
137
if c.type == 'nil'
138
or (c.type == 'global' and c.cate == 'type' and c.name == 'nil')
139
- 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')
140
+ or (c.type == 'global' and c.cate == 'type' and c.name == '...') then
141
return true
142
end
143
test/diagnostics/common.lua
@@ -1727,6 +1727,13 @@ function F()
1727
1728
]]
1729
1730
+TEST [[
1731
+---@return ...
1732
+function F()
1733
+ return
1734
+end
1735
+]]
1736
+
1737
do return end
1738
TEST [[
1739
---@return number
0 commit comments