diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-04-26 17:53:13 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-04-26 17:53:13 +0800 |
commit | b8ec5ae4fa6eed01bd093f39cd76f01d315f330a (patch) | |
tree | cc071308420dcec3a8f7a8d5494cd9797caa143c /test | |
parent | da4bc8f26bad8997cf82b8e3752eb6c197eb08fd (diff) | |
download | lua-language-server-b8ec5ae4fa6eed01bd093f39cd76f01d315f330a.zip |
generic forward
Diffstat (limited to 'test')
-rw-r--r-- | test/definition/luadoc.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/definition/luadoc.lua b/test/definition/luadoc.lua index e04c62df..438425f3 100644 --- a/test/definition/luadoc.lua +++ b/test/definition/luadoc.lua @@ -209,6 +209,23 @@ TEST [[ ]] TEST [[ +---@return <!fun()!> +local function f() end + +local <?<!r!>?> = f() +]] + +TEST [[ +---@generic T +---@param p T +---@return T +local function f(p) end + +local <!k!> +local <?<!r!>?> = f(k) +]] + +TEST [[ ---@class Foo local Foo = {} function Foo:<!bar1!>() end |