diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-11-06 18:15:47 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-11-06 18:15:47 +0800 |
commit | 0f4da273013ed0b311debefb8824c47d8be7e58f (patch) | |
tree | 23d36466f97cc550724bce3ece6770aac2d16645 /server-beta/test/diagnostics | |
parent | d54be8c6fb8d854543f412246b1f4f11a4715b1b (diff) | |
download | lua-language-server-0f4da273013ed0b311debefb8824c47d8be7e58f.zip |
更新诊断
Diffstat (limited to 'server-beta/test/diagnostics')
-rw-r--r-- | server-beta/test/diagnostics/init.lua | 10 |
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 |