summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/hover/init.lua10
-rw-r--r--test/type_inference/init.lua2
2 files changed, 11 insertions, 1 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua
index 9cdf2ed4..acb779bf 100644
--- a/test/hover/init.lua
+++ b/test/hover/init.lua
@@ -2042,6 +2042,16 @@ function f(...boolean)
]]
TEST [[
+---@param ... boolean
+---@return ...
+local function <?f?>(...) end
+]]
+[[
+function f(...boolean)
+ -> ...unknown
+]]
+
+TEST [[
---@type fun():x: number
local <?f?>
]]
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index a8ea4cf3..d56761c5 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -515,7 +515,7 @@ TEST 'fun(a: string, b: any, ...any)' [[
local <?x?>
]]
-TEST 'fun(a: string, b: any, c?: boolean, ...any):c, d?, ...' [[
+TEST 'fun(a: string, b: any, c?: boolean, ...any):c, d?, ...unknown' [[
---@type fun(a: string, b, c?: boolean, ...):c, d?, ...
local <?x?>
]]