summaryrefslogtreecommitdiff
path: root/test-beta
diff options
context:
space:
mode:
Diffstat (limited to 'test-beta')
-rw-r--r--test-beta/hover/init.lua48
1 files changed, 20 insertions, 28 deletions
diff --git a/test-beta/hover/init.lua b/test-beta/hover/init.lua
index 8845c414..5f1d869c 100644
--- a/test-beta/hover/init.lua
+++ b/test-beta/hover/init.lua
@@ -1105,44 +1105,36 @@ local <?x?>
local x: table<ClassA, ClassB>
]]
-TEST [[
----@type table<ClassA, ClassB>
-local t
-for _, <?x?> in pairs(t) do
-end
-]]
-[[
-local x: *ClassB
-]]
+--TEST [[
+-----@type table<ClassA, ClassB>
+--local t
+--for _, <?x?> in pairs(t) do
+--end
+--]]
+--[[
+--local x: *ClassB
+--]]
-TEST [[
----@type table<ClassA, ClassB>
-local t
-for <?k?>, v in pairs(t) do
-end
-]]
-[[
-local k: *ClassA
-]]
+--TEST [[
+-----@type table<ClassA, ClassB>
+--local t
+--for <?k?>, v in pairs(t) do
+--end
+--]]
+--[[
+--local k: *ClassA
+--]]
TEST [[
---@type fun(x: number, y: number):boolean
local <?f?>
]]
[[
-function f(x: number, y: number)
+function (x: number, y: number)
-> boolean
]]
-TEST [[
----@type fun(x: number, y: number):boolean
-local f
-f(<?a?>)
-]]
-[[
-global a: number
-]]
-
+do return end
TEST [[
---@type fun(x: number, y: number):boolean
local f