diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-05-11 22:07:47 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-05-11 22:07:47 +0800 |
commit | 3b97d7d4d54755517db0fd776c006bbb37313967 (patch) | |
tree | 1172b521de749f0ce70e2500da7d30378678fc2e /test | |
parent | 9f8cc1de6737edfb3dbb3e092fa7ce892b06761d (diff) | |
download | lua-language-server-3b97d7d4d54755517db0fd776c006bbb37313967.zip |
stash
Diffstat (limited to 'test')
-rw-r--r-- | test/definition/luadoc.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/definition/luadoc.lua b/test/definition/luadoc.lua index 3620f25e..fe6d1e21 100644 --- a/test/definition/luadoc.lua +++ b/test/definition/luadoc.lua @@ -427,6 +427,21 @@ local <?<!c!>?> = f(b) ]] TEST [[ +---@class C +local <!v1!> + +---@generic V, T +---@param t T +---@return fun(t: V[]): V +---@return T +local function iterator(t) end + +for <!v!> in iterator(v1) do + print(<?v?>) +end +]] + +TEST [[ ---@class Foo local Foo = {} function Foo:<!bar1!>() end |