summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/definition/luadoc.lua10
-rw-r--r--test/hover/init.lua2
2 files changed, 11 insertions, 1 deletions
diff --git a/test/definition/luadoc.lua b/test/definition/luadoc.lua
index 3c0c764b..5315b5fd 100644
--- a/test/definition/luadoc.lua
+++ b/test/definition/luadoc.lua
@@ -331,3 +331,13 @@ for i, v in ipairs(v1) do
print(v2.<?bar1?>)
end
]]
+
+TEST [[
+---@class Foo
+local Foo = {}
+function Foo:<!bar1!>() end
+
+---@type table<number, table<number, Foo>>
+local v1
+print(v1[1][1].<?bar1?>)
+]]
diff --git a/test/hover/init.lua b/test/hover/init.lua
index 35222f32..5b3acded 100644
--- a/test/hover/init.lua
+++ b/test/hover/init.lua
@@ -1171,7 +1171,7 @@ TEST [[
local <?x?>
]]
[[
-local x: table<ClassA, ClassB> {}
+local x: table<ClassA, ClassB>
]]
--TEST [[