summaryrefslogtreecommitdiff
path: root/test-beta/hover/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test-beta/hover/init.lua')
-rw-r--r--test-beta/hover/init.lua9
1 files changed, 5 insertions, 4 deletions
diff --git a/test-beta/hover/init.lua b/test-beta/hover/init.lua
index a21c7416..c4f6cb92 100644
--- a/test-beta/hover/init.lua
+++ b/test-beta/hover/init.lua
@@ -1009,7 +1009,6 @@ local <?r?> = f(1)
local r: integer = 1
]]
-do return end
TEST [[
---@param x number
---@param y boolean
@@ -1028,19 +1027,21 @@ end
f(1, 2, 3)
]]
[[
-local x: *Class = 2
+local x: Class
]]
TEST [[
---@vararg Class
local function f(...)
- local _, <?x?> = ...
+ local <?t?> = {...}
end
+f(1, 2, 3)
]]
[[
-local x: *Class {}
+local t: Class[]
]]
+do return end
TEST [[
---@type string[]
local <?x?>