summaryrefslogtreecommitdiff
path: root/server/test
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-25 21:38:42 +0800
committersumneko <sumneko@hotmail.com>2019-04-25 21:38:42 +0800
commitd9b46b94c28b2a62c95b40ca83b2a657f18ee028 (patch)
tree7dbd3fef23873103d775b6a6cded30636a0025d0 /server/test
parentd467b51cf4ce3b405fe131ddd75a6844e17797f3 (diff)
downloadlua-language-server-d9b46b94c28b2a62c95b40ca83b2a657f18ee028.zip
param支持循环
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 {}
+]]