summaryrefslogtreecommitdiff
path: root/test/diagnostics
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-28 03:08:24 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-28 03:08:24 +0800
commitae024958da9a14ed837495f79972a85458ee3f0c (patch)
tree98acf3e1bdfa552ed266a2033e22ead1a9c044bd /test/diagnostics
parentf3019c63409b7bdadb0b7ecedfd3b90a0b29397b (diff)
downloadlua-language-server-ae024958da9a14ed837495f79972a85458ee3f0c.zip
fix diags
Diffstat (limited to 'test/diagnostics')
-rw-r--r--test/diagnostics/common.lua9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua
index de2481a6..16773633 100644
--- a/test/diagnostics/common.lua
+++ b/test/diagnostics/common.lua
@@ -1736,16 +1736,17 @@ end
do return end
TEST [[
----@return number
+---@return number, number?
function F()
- X = 1<!!>
+ return 1, 1, <!1!>
end
]]
TEST [[
----@return number, number?
+---@return number
function F()
- return 1, 1, <!1!>
+ X = 1<!!>
end
]]
+
util.arrayRemove(disables, 'redundant-return')