summaryrefslogtreecommitdiff
path: root/server/test/diagnostics/init.lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-28 20:20:41 +0800
committersumneko <sumneko@hotmail.com>2019-04-28 20:20:41 +0800
commitd1274f277907b4b7e45dd018f5617708ea37636d (patch)
treed2a10cc5f7cc3aca34362f6cf24b67da377b4167 /server/test/diagnostics/init.lua
parent0bc67627a4409a08e34be0b44cba928cdacf8192 (diff)
downloadlua-language-server-d1274f277907b4b7e45dd018f5617708ea37636d.zip
检查重复field
Diffstat (limited to 'server/test/diagnostics/init.lua')
-rw-r--r--server/test/diagnostics/init.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/server/test/diagnostics/init.lua b/server/test/diagnostics/init.lua
index 60c029bb..499ffe78 100644
--- a/server/test/diagnostics/init.lua
+++ b/server/test/diagnostics/init.lua
@@ -415,3 +415,14 @@ local function f(x, y)
end
f()
]]
+
+TEST [[
+---@field <!x Class!>
+---@class Class
+]]
+
+TEST [[
+---@class Class
+---@field <!x!> Class
+---@field <!x!> Class
+]]