summaryrefslogtreecommitdiff
path: root/server/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-10-31 19:43:48 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-10-31 19:43:48 +0800
commitd004c1c6dcc5716d1e2f049782b660bb3d7bd74d (patch)
tree5b36bafba9e0a5c6452bc1e160990a8ca9f8d4d0 /server/test
parentb63286f959f6a07c8901b0e3f0e03e81a935ac4d (diff)
downloadlua-language-server-d004c1c6dcc5716d1e2f049782b660bb3d7bd74d.zip
#fixed 104
Diffstat (limited to 'server/test')
-rw-r--r--server/test/diagnostics/init.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/server/test/diagnostics/init.lua b/server/test/diagnostics/init.lua
index 666d72dc..ec0b76ba 100644
--- a/server/test/diagnostics/init.lua
+++ b/server/test/diagnostics/init.lua
@@ -554,6 +554,16 @@ local x
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!>()