summaryrefslogtreecommitdiff
path: root/server-beta/test/diagnostics
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-11-06 18:15:47 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-11-06 18:15:47 +0800
commit0f4da273013ed0b311debefb8824c47d8be7e58f (patch)
tree23d36466f97cc550724bce3ece6770aac2d16645 /server-beta/test/diagnostics
parentd54be8c6fb8d854543f412246b1f4f11a4715b1b (diff)
downloadlua-language-server-0f4da273013ed0b311debefb8824c47d8be7e58f.zip
更新诊断
Diffstat (limited to 'server-beta/test/diagnostics')
-rw-r--r--server-beta/test/diagnostics/init.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/server-beta/test/diagnostics/init.lua b/server-beta/test/diagnostics/init.lua
index 6a5dc57f..2bb99323 100644
--- a/server-beta/test/diagnostics/init.lua
+++ b/server-beta/test/diagnostics/init.lua
@@ -608,6 +608,16 @@ x = x or -1
]]
TEST [[
+local x
+x = x or (0 + 1)
+]]
+
+TEST [[
+local x, y
+x = (x + y) or 0
+]]
+
+TEST [[
local t = {}
function t:<!a!>()
end