diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/definition/luadoc.lua | 9 |
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 |