summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-19 21:51:25 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-19 21:51:25 +0800
commit028a53341827dff350fe3a626404c607f4f67c8e (patch)
tree651656a80e00d76b5d8c56b4dd64e9ae37310684 /test
parentbe85f2c855f9075cadae3219f4dc1f3ce1f920ca (diff)
downloadlua-language-server-028a53341827dff350fe3a626404c607f4f67c8e.zip
`close-non-object` don't check `unknown`
Diffstat (limited to 'test')
-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 4c065ac6..886f086a 100644
--- a/test/diagnostics/common.lua
+++ b/test/diagnostics/common.lua
@@ -2000,3 +2000,10 @@ print(1)
do return end
]]
+
+TEST [[
+---@type unknown
+local t
+
+local _ <close> = t
+]]