summaryrefslogtreecommitdiff
path: root/test/definition
diff options
context:
space:
mode:
Diffstat (limited to 'test/definition')
-rw-r--r--test/definition/luadoc.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/definition/luadoc.lua b/test/definition/luadoc.lua
index 7b6fd0da..0021556f 100644
--- a/test/definition/luadoc.lua
+++ b/test/definition/luadoc.lua
@@ -644,6 +644,17 @@ print(t.<?x?>)
]]
TEST [[
+---@alias TT<V> { <!x!>: V }
+
+---@type TT<A>
+local t
+
+---@class A: <!{}!>
+
+print(t.<?x?>)
+]]
+
+TEST [[
---@class Foo
local Foo = {}
function Foo:<!bar1!>() end