summaryrefslogtreecommitdiff
path: root/server/test
diff options
context:
space:
mode:
Diffstat (limited to 'server/test')
-rw-r--r--server/test/hover/init.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/server/test/hover/init.lua b/server/test/hover/init.lua
index aadac372..639789e0 100644
--- a/server/test/hover/init.lua
+++ b/server/test/hover/init.lua
@@ -575,3 +575,25 @@ f(<?s?>)
[[
global s: *Class {}
]]
+
+TEST [[
+---@class Class
+
+---@param k Class
+for <?k?> in pairs(t) do
+end
+]]
+[[
+local k<key>: *Class {}
+]]
+
+TEST [[
+---@class Class
+
+---@param v Class
+for k, <?v?> in pairs(t) do
+end
+]]
+[[
+local v<value>: *Class {}
+]]