summaryrefslogtreecommitdiff
path: root/test/diagnostics
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-12 18:17:15 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-12 18:17:15 +0800
commit3b194eccf878918e7202a98f4765c3015eb93d28 (patch)
tree62b2c29978892f8ff135176097e9463e53b2aaad /test/diagnostics
parent38384f5e47bf8f7b7bc33a1c326250a8ee03b767 (diff)
downloadlua-language-server-3b194eccf878918e7202a98f4765c3015eb93d28.zip
`---@class` can be re-declared
Diffstat (limited to 'test/diagnostics')
-rw-r--r--test/diagnostics/init.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/diagnostics/init.lua b/test/diagnostics/init.lua
index fa67d229..558ffc26 100644
--- a/test/diagnostics/init.lua
+++ b/test/diagnostics/init.lua
@@ -676,10 +676,10 @@ T = {}
T['x'], <!T['y']!>, <!T['z']!> = 1
]]
-TEST [[
----@class <!Class!>
----@class <!Class!>
-]]
+--TEST [[
+-----@class <!Class!>
+-----@class <!Class!>
+--]]
TEST [[
---@class A : <!B!>
@@ -720,7 +720,7 @@ TEST [[
]]
TEST [[
----@class <!A!>
+---@class A
---@class B
---@alias <!A B!>
]]