diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-25 21:38:42 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-25 21:38:42 +0800 |
commit | d9b46b94c28b2a62c95b40ca83b2a657f18ee028 (patch) | |
tree | 7dbd3fef23873103d775b6a6cded30636a0025d0 /server/test | |
parent | d467b51cf4ce3b405fe131ddd75a6844e17797f3 (diff) | |
download | lua-language-server-d9b46b94c28b2a62c95b40ca83b2a657f18ee028.zip |
param支持循环
Diffstat (limited to 'server/test')
-rw-r--r-- | server/test/hover/init.lua | 22 |
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 {} +]] |