summaryrefslogtreecommitdiff
path: root/test/hover/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-11 16:44:28 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-11 16:44:28 +0800
commitbce8b096a5ccfffd928ba6e56980b62201c3d479 (patch)
tree0e1f5d3f03d02f54f357bd1a64e4848156ff71ca /test/hover/init.lua
parent34500a78247b7192b8e2a1578a642daf3e48b358 (diff)
downloadlua-language-server-bce8b096a5ccfffd928ba6e56980b62201c3d479.zip
add test
Diffstat (limited to 'test/hover/init.lua')
-rw-r--r--test/hover/init.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua
index 760a9ab9..d4160dfa 100644
--- a/test/hover/init.lua
+++ b/test/hover/init.lua
@@ -1866,3 +1866,21 @@ local t: B {
y: string,
}
]]
+
+TEST [[
+---@class A
+---@field x string
+
+---@class B: A
+---@field x integer
+---@field y string
+
+---@type B
+local <?t?>
+]]
+[[
+local t: B {
+ x: integer,
+ y: string,
+}
+]]