summaryrefslogtreecommitdiff
path: root/test/diagnostics/close-non-object.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-08-11 16:28:47 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-08-11 17:57:29 +0800
commit6fe0ea884f692a460cdf084c28900fc44dec0018 (patch)
tree68fdfcf8bdaf3c18ab06af2a7a32d6eb3fc1c809 /test/diagnostics/close-non-object.lua
parent736e54a8ecaada2dacd0fd0ae35ad03aa75a7149 (diff)
downloadlua-language-server-6fe0ea884f692a460cdf084c28900fc44dec0018.zip
cleanup tests
Diffstat (limited to 'test/diagnostics/close-non-object.lua')
-rw-r--r--test/diagnostics/close-non-object.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/diagnostics/close-non-object.lua b/test/diagnostics/close-non-object.lua
new file mode 100644
index 00000000..10f207f0
--- /dev/null
+++ b/test/diagnostics/close-non-object.lua
@@ -0,0 +1,11 @@
+TEST [[
+local _ <close> = <!1!>
+]]
+
+TEST [[
+local _ <close> = <!''!>
+]]
+
+TEST [[
+local c <close> = <!(function () return 1 end)()!>
+]]