summaryrefslogtreecommitdiff
path: root/server/test/diagnostics/init.lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-18 16:32:36 +0800
committersumneko <sumneko@hotmail.com>2019-04-18 16:32:36 +0800
commitf077aa010aa2ae0a2cc6edbc345eaf4056b96e2b (patch)
treec45f7cf10a5fed43afc0a93eb9106961c67b931c /server/test/diagnostics/init.lua
parentcc8fc15d26a1dfd2f30485ba21f2f313141932d0 (diff)
downloadlua-language-server-f077aa010aa2ae0a2cc6edbc345eaf4056b96e2b.zip
class的一些诊断
Diffstat (limited to 'server/test/diagnostics/init.lua')
-rw-r--r--server/test/diagnostics/init.lua23
1 files changed, 23 insertions, 0 deletions
diff --git a/server/test/diagnostics/init.lua b/server/test/diagnostics/init.lua
index 557a2475..7bb25f00 100644
--- a/server/test/diagnostics/init.lua
+++ b/server/test/diagnostics/init.lua
@@ -332,3 +332,26 @@ local function x()
print(loc)
end
]]
+
+TEST [[
+---@class <!Class!>
+---@class <!Class!>
+]]
+
+TEST [[
+---@class A : <!B!>
+]]
+
+TEST [[
+---@class <!A : B!>
+---@class <!B : C!>
+---@class <!C : D!>
+---@class <!D : A!>
+]]
+
+TEST [[
+---@class A : B
+---@class B : C
+---@class C : D
+---@class D
+]]