summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-04-28 21:04:18 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-04-28 21:04:18 +0800
commit5e0c1dfa6beaf4431d7fae3e392aab7e7da34213 (patch)
tree3cd78b1da58bd6f366de57b0845a4363a7ce3b5c /test
parent6aa90f4667b8470fe80889e5fe0f9ab4f96ae86b (diff)
downloadlua-language-server-5e0c1dfa6beaf4431d7fae3e392aab7e7da34213.zip
stash
Diffstat (limited to 'test')
-rw-r--r--test/definition/luadoc.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/definition/luadoc.lua b/test/definition/luadoc.lua
index a971dfe1..74cc5c81 100644
--- a/test/definition/luadoc.lua
+++ b/test/definition/luadoc.lua
@@ -338,6 +338,15 @@ local <?<!v2!>?> = v1()
]]
TEST [[
+---@generic V
+---@return fun(x: V):V
+local function f(x) end
+
+local v1 = f()
+local <?<!v2!>?> = v1(<!{}!>)
+]]
+
+TEST [[
---@class Foo
local Foo = {}
function Foo:<!bar1!>() end