summaryrefslogtreecommitdiff
path: root/test/diagnostics/close-non-object.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-08-11 17:57:22 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-08-11 17:57:29 +0800
commit5e5a1b2ebb103625bbbb686ab31abc11a78e9d73 (patch)
tree8140d6f9c04a51476e558a9b7fa661a068d6c49a /test/diagnostics/close-non-object.lua
parentcd370225fc4eaf6e2f6baadfb5a8501943c86783 (diff)
downloadlua-language-server-5e5a1b2ebb103625bbbb686ab31abc11a78e9d73.zip
cleanup tests
Diffstat (limited to 'test/diagnostics/close-non-object.lua')
-rw-r--r--test/diagnostics/close-non-object.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/diagnostics/close-non-object.lua b/test/diagnostics/close-non-object.lua
index 10f207f0..11b882b7 100644
--- a/test/diagnostics/close-non-object.lua
+++ b/test/diagnostics/close-non-object.lua
@@ -9,3 +9,10 @@ local _ <close> = <!''!>
TEST [[
local c <close> = <!(function () return 1 end)()!>
]]
+
+TEST [[
+---@type unknown
+local t
+
+local _ <close> = t
+]]