summaryrefslogtreecommitdiff
path: root/server/test/diagnostics
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-07-05 11:55:59 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-07-05 11:55:59 +0800
commitb1afe6e48fc454fcc767c6a009fa2f59697b38c1 (patch)
treead2ef2db8dc7686f4c6eb4554abc1e6c4c4bdcc9 /server/test/diagnostics
parentcc5bf4402fa48b27e9d32651cf7c1825f50b21f9 (diff)
downloadlua-language-server-b1afe6e48fc454fcc767c6a009fa2f59697b38c1.zip
加个测试
Diffstat (limited to 'server/test/diagnostics')
-rw-r--r--server/test/diagnostics/init.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/test/diagnostics/init.lua b/server/test/diagnostics/init.lua
index 7884df06..62996054 100644
--- a/server/test/diagnostics/init.lua
+++ b/server/test/diagnostics/init.lua
@@ -448,3 +448,8 @@ local <const> x = 1
<!x!> = 2
return x
]]
+
+TEST [[
+local x
+x = <!x or 0 + 1!>
+]]