summaryrefslogtreecommitdiff
path: root/test/hover/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-11 16:39:59 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-11 16:39:59 +0800
commit4c96b6a56b353dbc3aef49c52c6875d89d207836 (patch)
tree57b011bc39a7166e267e4e6bb3ac63179cb2485e /test/hover/init.lua
parent23ef4b17535ba14e62427a6084e3060223133687 (diff)
downloadlua-language-server-4c96b6a56b353dbc3aef49c52c6875d89d207836.zip
fix #1033
Diffstat (limited to 'test/hover/init.lua')
-rw-r--r--test/hover/init.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua
index 021746be..760a9ab9 100644
--- a/test/hover/init.lua
+++ b/test/hover/init.lua
@@ -1849,3 +1849,20 @@ local x: {
[1]: integer = 10,
}
]]
+
+TEST [[
+---@class A
+---@field x string
+
+---@class B: A
+---@field y string
+
+---@type B
+local <?t?>
+]]
+[[
+local t: B {
+ x: string,
+ y: string,
+}
+]]