summaryrefslogtreecommitdiff
path: root/test/diagnostics
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-07-21 15:21:37 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-07-21 15:21:37 +0800
commitf074686c59f033566b3fb44aa3f73d1a2ec0e7ed (patch)
treeb26280529d29ab54ee6eed8af3f79dbc2eb8407d /test/diagnostics
parent7c636357622b7b20e9729c902b5682a05995b911 (diff)
downloadlua-language-server-f074686c59f033566b3fb44aa3f73d1a2ec0e7ed.zip
fix `missing-fields`
Diffstat (limited to 'test/diagnostics')
-rw-r--r--test/diagnostics/common.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua
index d061b4e4..aff97c77 100644
--- a/test/diagnostics/common.lua
+++ b/test/diagnostics/common.lua
@@ -2414,3 +2414,20 @@ f {
z = 3,
}
]]
+
+TEST [[
+---@diagnostic disable: unused-local
+---@class A
+---@field x number
+local t = {}
+]]
+
+TEST [[
+---@diagnostic disable: unused-local
+
+---@class A
+---@field x number
+
+---@class A
+local t = {}
+]]