summaryrefslogtreecommitdiff
path: root/test/definition
diff options
context:
space:
mode:
Diffstat (limited to 'test/definition')
-rw-r--r--test/definition/luadoc.lua17
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