summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-02-20 17:35:41 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-02-20 17:35:41 +0800
commit430424201fd104ee0e2dcdbf35a8d049a19a3a95 (patch)
treed02dc105e40dd14c7ee47e2de4c76c47470c3c4d /test
parent58ae26985b85315c8fb9f79a88e84515f71c0af6 (diff)
downloadlua-language-server-430424201fd104ee0e2dcdbf35a8d049a19a3a95.zip
close #254 supports multiple class inheritance
Diffstat (limited to 'test')
-rw-r--r--test/definition/luadoc.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/definition/luadoc.lua b/test/definition/luadoc.lua
index 5315b5fd..314af605 100644
--- a/test/definition/luadoc.lua
+++ b/test/definition/luadoc.lua
@@ -341,3 +341,16 @@ function Foo:<!bar1!>() end
local v1
print(v1[1][1].<?bar1?>)
]]
+
+TEST [[
+---@class X
+
+---@class Y
+---@field <!a!> string
+
+---@class Z:X, Y
+
+---@type Z
+local z
+z.<?a?>
+]]