summaryrefslogtreecommitdiff
path: root/test/diagnostics
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-22 01:41:16 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-22 01:41:16 +0800
commit7b3e7f4b0a62b7c9c3b895e89b4fe79bb8f350ba (patch)
treeee441dc6545127e650c6fcf435c96d33079ac177 /test/diagnostics
parentd1e977ca8a6d72673649282bcd1973b1d279a8a1 (diff)
downloadlua-language-server-7b3e7f4b0a62b7c9c3b895e89b4fe79bb8f350ba.zip
fix
Diffstat (limited to 'test/diagnostics')
-rw-r--r--test/diagnostics/common.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua
index 4edb9703..d640e45a 100644
--- a/test/diagnostics/common.lua
+++ b/test/diagnostics/common.lua
@@ -1620,3 +1620,14 @@ local n
print(n.x)
]]
+
+TEST [[
+---@diagnostic disable: unused-local, unused-function, undefined-global
+
+function F() end
+
+---@param x boolean
+function F(x) end
+
+F(k())
+]]