summaryrefslogtreecommitdiff
path: root/test/diagnostics/common.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-11-05 01:01:56 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-11-05 01:01:56 +0800
commit82ccd9baf64bf739e0bf7f8251075acb9e286356 (patch)
treed2d65db2c4280f6b5f66aa30d437c0c202a8ff70 /test/diagnostics/common.lua
parent167a17c541a08b3dc5b3588dbb617d2ebf61f343 (diff)
downloadlua-language-server-82ccd9baf64bf739e0bf7f8251075acb9e286356.zip
only ignore empty functions in meta files
#1457
Diffstat (limited to 'test/diagnostics/common.lua')
-rw-r--r--test/diagnostics/common.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua
index e899c0c4..7c2ffb60 100644
--- a/test/diagnostics/common.lua
+++ b/test/diagnostics/common.lua
@@ -1149,6 +1149,8 @@ return m
]]
TEST [[
+---@meta
+
---@class A
---@field a boolean
@@ -1769,6 +1771,8 @@ function t:init() end
]]
TEST [[
+---@meta
+
return function f(x, y, z) end
]]
@@ -1816,6 +1820,8 @@ end
]]
TEST [[
+---@meta
+
---@return number, number
local function r2() end
@@ -2057,6 +2063,7 @@ local _ <close> = t
]]
TEST [[
+---@meta
---@diagnostic disable: duplicate-set-field
---@class A
local m = {}