summaryrefslogtreecommitdiff
path: root/test/diagnostics
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-11-14 20:25:50 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-11-14 20:25:50 +0800
commitccce6e0b430a29cd58bfcffc07fd17ebaba3ddc4 (patch)
treecae77f4b8b96f1b0f7af7e26579e6b7f3a8b34b7 /test/diagnostics
parent09c4ae6d4960fc4ac93e202a8419c8b0a2d7a477 (diff)
downloadlua-language-server-ccce6e0b430a29cd58bfcffc07fd17ebaba3ddc4.zip
`duplicate-doc-field` check cross files
Diffstat (limited to 'test/diagnostics')
-rw-r--r--test/diagnostics/common.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua
index 760f1f6f..5e0b3d2a 100644
--- a/test/diagnostics/common.lua
+++ b/test/diagnostics/common.lua
@@ -895,7 +895,7 @@ TEST [[
TEST [[
---@class Class
----@field x Class
+---@field <!x!> Class
---@field <!x!> Class
]]
@@ -1275,7 +1275,7 @@ local emit = {}
TEST [[
--- @class Emit
--- @field on fun(eventName: string, cb: function)
---- @field on fun(eventName: '"died"', cb: fun(i: integer))
+--- @field <!on!> fun(eventName: '"died"', cb: fun(i: integer))
--- @field on fun(eventName: '"won"', cb: fun(s: string))
--- @field <!on!> fun(eventName: '"died"', cb: fun(i: integer))
local emit = {}
@@ -1738,7 +1738,7 @@ TEST [[
---@class A
---@class B
----@field [A] A
+---@field [<!A!>] A
---@field [<!A!>] true
]]